-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[Bug]: Basename is duplicated in nested routes #10467
Comments
I can agree with this bug report. The same behaviour is happening for us. |
Thanks for the reproduction @fkaempfer! This does look like a regression in 6.11.1 so we'll get a fix out in a patch release soon. |
I also saw this issue in our project. But this is introduced only in 6.11, it worked as expected when I downgraded to 6.10. |
This is fixed by #10492 and will be available once 6.11.2 is released 👍 |
🤖 Hello there, We just published version Thanks! |
Thanks, it seems to fix the issue in my app. |
🤖 Hello there, We just published version Thanks! |
What version of React Router are you using?
6.11.1
Steps to Reproduce
This seems similar to #10431 , but I'm unsure whether this is a regression, since I only recently switched to vite.
In particular scenarios with nested routes it happens that the basename is duplicated. I managed to create an example here:
https://stackblitz.com/edit/github-cjtxux?file=src/App.tsx
https://githubcjtxux-uvj1--5173--9c984a48.local-corp.webcontainer.io/test/test/dashboard
Expected Behavior
Clicking the link on the about page should load the dashboard page
Actual Behavior
Clicking the link on the about page loads the 404 page
The text was updated successfully, but these errors were encountered: