Describe the bug
When route path contains basepath - routing for these paths breaks.
Example can be found within provided stackblitz.
Your Example Website or App
https://stackblitz.com/edit/github-hqacy5?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
- Set
basepath parameter for router
- Have a route with segment equal to
basepath
- Routing broken for all paths containing
basepath
Expected behavior
basepath works as a prefix to all routes of a router
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome
- Version: 126
Additional context
No response