question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello! 👋

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.

  1. Go to /foo/page
  2. Switch the basePath to /bar using the dropdown
  3. The matching is not re-performed: we don’t see the 404

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:25 (25 by maintainers)

github_iconTop GitHub Comments

2reactions
yenoiwesacommented, Nov 11, 2020

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) 🥳

2reactions
kyeoticcommented, Nov 1, 2020

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found