-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Using base
and hashRouter
produces weird URLs
#268
Comments
As the documentation suggest, you should always start and end your But I wonder if this would be a nice feature for docz. What do you think @pedronauck? I could work on ensuring that |
@Yurickh the problem with that is that https://reacttraining.com/react-router/web/api/BrowserRouter/basename-string
I imagine |
Problem is that and And this should be a 2 different options (like |
@exah thanks for digging in, looks like it's what I was expecting! For me I would want to leave this |
For sure, thanks guy! The basename on router, in this case, is used to bind |
Bug Report
When you set a different
base
and use thehashRouter
you get weird duplication of URLs.For example you set
base
to/foo
and then go to your deployed doc site and click aroundyou'll end up with something like
/foo/#/foo/<sub>/<sub>/
Expected behavior
The base isn't appended on every URL on top of itself
The text was updated successfully, but these errors were encountered: