NavLink behaviour different after Navigate #13917
Unanswered
jake-jdrsoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My site has a navigation bar on all pages, using something like
<NavLink to={PATH.HOME}>{...}</NavLink>
If I am on a page, and I click the link to that same page - nothing happens.
However If I reach that page by redirecting (ie by calling the edit function below):
and then click on the link for the page I am on (PATH.HOME), the page refreshes.
How do I get consistent behaviour? I don't mind if it refreshes or does nothing.
"react-router": "^7.6.3",
Beta Was this translation helpful? Give feedback.
All reactions