Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash history url is not parsed correctly with query params #969

Open
sirpy opened this issue Aug 10, 2023 · 0 comments
Open

hash history url is not parsed correctly with query params #969

sirpy opened this issue Aug 10, 2023 · 0 comments

Comments

@sirpy
Copy link

sirpy commented Aug 10, 2023

on react router if you initially go to http://localhost/?queryparam=x
then you will be redirect to http://localhost/?queryparam=x#/
then if you call useLocation the location will not have the queryparam
but if you go to http://localhost/#/?queryparam=x then location will be correct.
window.location is correct in both cases, but useLocation isn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant