In my app, if the user goes to
http://localhost:3000/#/auth
The sign in page will render by default.
When the user goes to the signup page, the url is
http://localhost:3000/#/auth?form=signup
However, whenever I refresh the page, the url automatically goes back to
http://localhost:3000/#/auth
And the user now sees the sign-in page.
Is there a way to keep the url queries after a refresh? In other words, if the user is on the signup page and refreshes, I want to render the signup page and not the sign-in page.
I am using react-router@3 and using hashHistory. Here is the route
<Route path="/auth" component={Auth} />
Authcomponent that renders different forms based on the query. It is still the same page.