Firebase Hosting - Redirects to url with hashbang

时间:2018-09-19 08:25:03

标签: firebase firebase-hosting html-framework-7 facebook-sharer

I'm building a web app using Framework 7 and hosting it on Firebase. For the purpose of using Facebook sharer, I wanted to redirect my url from https://mywebapp.com/page/pageId to https://mywebapp.com/#!/page/pageId. My firebase config

"redirects": [ {
  "source" : "/page/:pageId"
  "destination" : "/#!/page/:pageId",
  "type" : 301
}]

The return url is encoded as https://mywebapp.com/%23%21/page/pageId and I couldn't access the page. Is there any way to prevent Firebase from encoding the redirect destination?

0 个答案:

没有答案