【问题标题】:Remove Query params and ? from URL in firebase redirect删除查询参数和?来自 Firebase 重定向中的 URL
【发布时间】:2019-08-19 10:13:32
【问题描述】:

有人知道如何删除之后的所有内容吗?在 firebase 的 url 中?

我只尝试了重定向,然后在此之上重写。

"redirects": [
  { "type": 302, "source": "/testMenuBrowse.php?cat=36", "destination": "/" }
],
"rewrites": [
  { "type": 302, "source": "/testMenuBrowse{,/**}", "destination": "/" }
],

无论我做什么,最终 URL 都是http://www.example.com/?cat=36

【问题讨论】:

    标签: firebase redirect firebase-hosting


    【解决方案1】:

    目前无法在使用 Firebase 托管进行重定向时去除查询参数。您可能想file a feature request 以获取该功能。

    【讨论】:

      猜你喜欢
      • 2014-12-10
      • 2019-02-27
      • 1970-01-01
      • 1970-01-01
      • 2018-01-16
      • 1970-01-01
      • 2019-07-19
      • 2016-09-20
      相关资源
      最近更新 更多