繁体   English   中英

Firebase 动态链接在查询参数前添加斜杠

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM