basePath issues
See original GitHub issueHello! 👋
First, thanks for this fantastic library, I’m using it on 6 projects and everything went well! Except some small issues with basePath. I’m using some workarounds, but I though it was not a good idea to keep the infos.
So I made a small sandbox to illustrate them: https://codesandbox.io/s/late-waterfall-qbl1f?file=/src/App.tsx
First, you can see that even if the basePath
is set to /foo
, both /page
and /foo/page
will match the route. I think only the second is correct here.
Secondly if you update the basePath
dynamically, the matching will not be performed again.
- Go to
/foo/page
- Switch the
basePath
to/bar
using the dropdown - The matching is not re-performed: we don’t see the 404
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:25 (25 by maintainers)
Top Results From Across the Web
How to fix Blazor WASM base path problems - elmah.io Blog
This post will show you how to fix a common problem when setting the application base path with Blazor WebAssembly.
Read more >{basePath} creates a folder named {basePath} issue
But when I put {basePath} to assets path, the system creates a {basePath} named folder in root and looks for the image folder...
Read more >Openapi 3.0.x basepath undefined error (#381047) - GitLab
Any news on this issue ? I'm working at Sopra Steria and the workaround is not acceptable for us. We are managing thousand...
Read more >Docusaurus baseUrl issues with Static Hosting Vercel and ...
We are trying to host the website with vercel. The problem we are stated below. We configured Docusaurus baseUrl to /en/ and deployed...
Read more >5689 - inaccessible lost+found directory in basePath is ...
Issue 5689: inaccessible lost+found directory in basePath is causing missing projects ... What steps will reproduce the problem? ... 2. 3. What is ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @kyeotic 👋 I just upgraded locally to
raviger@2.0.0-3
and I was not able to reproduce #64. So it seems like this bugfix did not cause a regression (at least for us) 🥳@zoontek Im going to bite the bullet and take the breaking change to fix this everywhere. I hope to have the v2 work merged and published later this week. Would you be interested in previewing a beta release?