-
-
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]: createMemoryRouter - Throwing a redirect in a loader/action, now changes the page URL #10010
Comments
Thanks for the bug report! This is fixed in the above PR 👍 |
This is fixed in |
@brophdawg11 Thanks so much for fixing this! |
This is now released in |
What version of React Router are you using?
6.8.0
Steps to Reproduce
I've created 2 examples, one that is working (version I've reverted to) and the latest, where it is now broken.
Working (v6.6.2): https://stackblitz.com/edit/react-ts-9g8mr3?file=App.tsx
Broken (v6.8.0): https://stackblitz.com/edit/react-ts-9gbuje?file=App.tsx
Throw Redirect
and notice the actual URL in the browser has been updated.Expected Behavior
Like in v6.6.2, the URL should not update when using the memory router option.
Actual Behavior
The current behaviour is the URL is being updated with the thrown path.
The text was updated successfully, but these errors were encountered: