Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.4k
useLocation() pathname doesn't include the basepath#5423
krishna-santosh started this conversation inGeneral
-
Don't know if this is an expected behavior or not, but I've noticed that when basepath is configured previously useLocation() pathname used to include the basepath, now it doesn't When we set basepath to be constlocation=useLocation()location.pathname==='/app/'// (used to be true)// but now location.pathname doesn't include the basepath, solocation.pathname==='/app/'// (this is false) because location.pathname is / |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
It seems like this might be the intended behavior.
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
1 reply
-
Yeah that makes sense! Thanks for clarifying 👍🏼 |
BetaWas this translation helpful?Give feedback.
All reactions
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment