You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base your steps off of any freshly installed react-static template!
I have a page that reads window.location?.search
I navigate to that page with query-string parameter /xxx?invite=test01
On yarn dev or yarn build && yarn serve everything works fine.
On yarn build and deploy to production, /xxx?invite=test01 gets redirected by react-static to /xxx. This happens for all pages and all query-string parameters except index page.
PROD:
DEV:
The text was updated successfully, but these errors were encountered:
Reporting a bug?
Provide as much information as you can to reproduce the issue.
If the issue is not reproducible, it can't be fixed!
Environment
Run and copy the result of:
npx envinfo --system --npmPackages react* --binaries --npmGlobalPackages react* --browsers
here:
Steps to Reproduce the problem
Base your steps off of any freshly installed react-static template!
window.location?.search
/xxx?invite=test01
yarn dev
oryarn build && yarn serve
everything works fine.yarn build
and deploy to production,/xxx?invite=test01
gets redirected byreact-static
to/xxx
. This happens for all pages and all query-string parameters except index page.PROD:
![Screenshot 2022-03-21 at 18 43 23](https://user-images.githubusercontent.com/6301761/159326309-6e9026f6-ae47-49e8-92ef-0b363928331d.png)
DEV:
![Screenshot 2022-03-21 at 18 51 18](https://user-images.githubusercontent.com/6301761/159326315-fd3f0c33-5e6d-4328-a61d-e46751af8473.png)
The text was updated successfully, but these errors were encountered: