-
-
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
[Bug]: href for NavLink in hashrouter does not use # #9392
Comments
Thanks @codeape2! This looks like a regression - we'll get a fix in soon 👍 |
I created a PR with a failing test: #9396 It looks like this only happens when using This test succeeds:
This test fails:
|
Merged the fix for this, should be included in a 6.4.3 hopefully later this week |
👋 Just did a prerelease ( |
What version of React Router are you using?
6.4.1
Steps to Reproduce
Using createHashRouter - after upgrading from 6.3 to 6.4, the href links rendered by
<NavLink>
(and<Link>
) change:This breaks right-click -> open in new tab.
Expected Behavior
<NavLink>
used within a hash router should create href="#...".Actual Behavior
<NavLink>
used within a hash router creates href without #.This breaks right-click->open in new tab.
The text was updated successfully, but these errors were encountered: