You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the reproduction! I think this is the same underlying issue as #9392 and it looks like 6.4.3-pre.0 does fix the issue in the stackblitz. Please re-open the issue if you're still seeing problems on the prerelease! We hope to have a 6.4.3 stable out soon.
What version of React Router are you using?
6.4.2
Steps to Reproduce
Context: Landingpage on which a user can navigate to different sections by using anchor tags.
See Stackblitz for reproduction of the issue. [UPDATE] createMemoryRouter has the same issue as createBrowserRouter.
I have been able to track this issue down to
createHref
in router.tsExpected Behavior
If I specify a Link or NavLink I expect the anchor tag to preserve the hash
Given:
I expect:
Same for NavLink
Actual Behavior
If I specify a Link or NavLink the anchor tag doesn't preserve the hash
Given:
I actually get:
Same for NavLink
The text was updated successfully, but these errors were encountered: