-
Notifications
You must be signed in to change notification settings - Fork 958
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
Correct behavior of basename? #404
Comments
We currently do remove the basename prefix before giving you location objects, so yes, that is the intent. However, there aren't great tests around this, so there may be a bug. Can you please provide some sample code? Or even better, a failing test case? |
Thanks for the pointer to the code. Turns out that it's because I was passing |
Hmmm, ya we should probably automatically add a |
I'm using
createBrowserHistory
directly withoutreact-router
, and I tried setting thebasename
property. This worked, and prefixed the URLs I pushed with the right path.However, I was expecting that
history
would also remove the prefix when handing back the current location to me.Am I using this feature incorrectly or is there some reason for the asymmetry in
basename
handling?Thanks!
The text was updated successfully, but these errors were encountered: