[英]Firebase dynamic links adding trailing slash before query params
I've set up a dynamic link in the web console, https://mysite.example.com/foo/bar
我在 web 控制台中设置了动态链接,
https://mysite.example.com/foo/bar
It deep links to https://mysite.example.com?campaign=123
它深度链接到
https://mysite.example.com?campaign=123
At least, that's what it shows it deep linking to in the console.至少,这就是它在控制台中显示的深层链接。 In practice it's actually deep linking me to
https://mysite.example.com/?campaign=123
, note the trailing slash.在实践中,它实际上将我深层链接到
https://mysite.example.com/?campaign=123
,请注意尾部斜杠。
It's not the end of the world, but is there any way to change this behavior?这不是世界末日,但有没有办法改变这种行为? Or is it just a bug?
或者它只是一个错误?
Ah, turns out that adding the "trailing slash" before the query params is the correct syntax, as pointed out here .啊,事实证明,在查询参数之前添加“斜杠”是正确的语法,正如在此处指出的那样。 According to RFC1738 3.3:
根据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.