Suggestions and Proposals regarding basename #12384
19Qingfeng
started this conversation in
Proposals
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.
-
Suppose my application has a basename named /hotel. Then, in some scenarios, I actually want to ignore the basename concatenation when navigating using useNavigate, because my URL is obtained from window.location, like this:
At this point, when calling the navigate method, reactRouter will by default concatenate the basename. In fact, my navigation URL already contains the basename, and it is clear that I want to ignore it.
It seems that there is no way to ignore the concatenation of the basename during navigation. Is it possible to add a parameter to ignore the basename?
Beta Was this translation helpful? Give feedback.
All reactions