-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[v6] [Bug]: 6.0.0-beta.3 changes relative NavLink
behavior
#8004
Labels
Comments
chaance
changed the title
[Bug]: v6 beta 3 changes relative NavLink behavior
[v6] [Bug]: 6.0.0-beta.3 changes relative Sep 4, 2021
NavLink
behavior
I can confirm the same buggy behavior on the |
Me too. |
chaance
added a commit
that referenced
this issue
Sep 7, 2021
#8026 should fix |
mjackson
pushed a commit
that referenced
this issue
Sep 9, 2021
Confirmed this is fixed in beta 4. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of React Router are you using?
v6 beta 3
Steps to Reproduce
Start at root, then click metrics, then click settings.
https://codesandbox.io/s/react-router-v6-beta-3-bug-mh54b?file=/src/App.js
Expected Behavior
In v6 beta 2, you can navigate back and forth between the links and they're all relative to
/
. So if you click Settings when you're on/metrics
you land on/settings
.Actual Behavior
In v6 beta 3, if you click Settings when you're on
/metrics
you land on/metrics/settings
. What's especially odd is that thehref
on the link is correct (according to my expectation anyway): it says/settings
. I have a hunch this is related to #7982.The text was updated successfully, but these errors were encountered: