-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
[Bug]: Basename is duplicated when calling setSearchParams
#10431
Comments
Thanks for the reproduction @ms-tng! Looks like we missed a |
This is fixed by #10433 and should be available once 6.11.1 is released |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Works perfectly, thank you for the quick fix! 👍 |
What version of React Router are you using?
6.11.0
Steps to Reproduce
/base
, e.g. with this Vite config:/base/foo
in your browser, e.g. with the default Vite port: http://127.0.0.1:5173/base/fooExpected Behavior
The app should redirect to http://127.0.0.1:5173/base/foo?bar=baz
This is what happens with
[email protected]
.Actual Behavior
The app redirects to http://127.0.0.1:5173/base/base/foo?bar=baz
I.e. the
/base
part is duplicated. In React's strict mode, when everything is rendered twice in development, it even redirects to http://127.0.0.1:5173/base/base/base/foo?bar=bazThe text was updated successfully, but these errors were encountered: