![](/img/trans.png)
[英]Android: Firebase Dynamic Links open browser first before opening app
[英]Firebase dynamic links adding trailing slash before query params
我在 web 控制台中設置了動態鏈接, https://mysite.example.com/foo/bar
它深度鏈接到https://mysite.example.com?campaign=123
至少,這就是它在控制台中顯示的深層鏈接。 在實踐中,它實際上將我深層鏈接到https://mysite.example.com/?campaign=123
,請注意尾部斜杠。
這不是世界末日,但有沒有辦法改變這種行為? 或者它只是一個錯誤?
啊,事實證明,在查詢參數之前添加“斜杠”是正確的語法,正如在此處指出的那樣。 根據RFC1738 3.3:
An HTTP URL takes the form:
http://<host>:<port>/<path>?<searchpart>
where <host> and <port> are as described in Section 3.1. If :<port>
is omitted, the port defaults to 80. No user name or password is
allowed. <path> is an HTTP selector, and <searchpart> is a query
string. The <path> is optional, as is the <searchpart> and its
preceding "?". If neither <path> nor <searchpart> is present, the "/"
may also be omitted.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.