简体   繁体   English

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

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

相关问题 Android:Firebase 动态链接在打开应用程序之前先打开浏览器 - Android: Firebase Dynamic Links open browser first before opening app 使用 Firebase 重定向 URL 动态/深层链接正在丢失查询参数 - Redirect URL using Firebase Dynamic / Deep Links is losing query parameters Flutter firebase 动态链接在应用程序上处理 url 时使用自定义参数自定义链接 - Flutter firebase dynamic links customise link with custom params when handling url on the app Firebase 短动态链接 URL 未按预期工作 - Firebase Dynamic Links Short URL not working as expected Firebase 动态链接 Android fallbackURL 不起作用 - Firebase dynamic links Android fallbackURL is not working Flutter Firebase 动态链接不适用于 facebook - Flutter Firebase Dynamic Links Not working on facebook Firebase 动态链接是否适用于 PWA 应用程序? - Do firebase dynamic links work with PWA applications? Firebase 动态链接不适用于带电容器的 ios - Firebase Dynamic links not working for ios with capacitor 有没有办法在 Play 控制台上验证 Firebase 动态链接? - is there a way to verify Firebase Dynamic Links on Play Console? 使用firebase动态链接时如何自定义预览firebase页面? - How to customise preview firebase page, when using firebase dynamic links?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM