Route paths with multiple slashes not loading
See original GitHub issueI have:
['/', List]
['/page/:pageNumber', List]
in my router. If I navigate to ‘/’ I can click the links I have set up such as
html`<a href="/page/${ pageNumber + 1 }">More</a>`
to change the page number and have the route change to ‘blahblah/page/2’ in the address bar. However, I can not seem to directly navigate to any route with multiple slashes. I get a 404 if try to go to the page directly.
I am serving this with budo locally. I understand this is probably something more to do with budo/sheet-router. I couldn’t come up with anything after perusing through the sheet-router and budo docs. I was wondering if someone could point me in the right direction? Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
why does my react switch router not work if my path has more ...
The problem is that your project is NOT using server side routing. I placed a component in your parent Component (Articles) and clicked...
Read more >React-router (v4) Double slashes Fix | Do Meraki Inc
Fix React-router double slashes that make urls do not open any route and a blank screen appear.
Read more >Double slash before Router (router//route) #4427 - GitHub
Hello, when i assign a router to the route, then there is access to routes with a double slash at the beginning. example:...
Read more >hapi — Ignore Trailing Slashes on Route Paths - Future Studio
Within the route handler, you differenciate between the two situations: whether a slug is available or not. server.route( { method: 'GET', path: ...
Read more >Route - Angular
An object specifying a lazy-loaded component. redirectTo?: string. A URL to redirect to when the path matches. Absolute if the URL begins with...
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, you probably need to use budo --pushstate option. On 19 Feb 2017 06:22, Ryan Eppers notifications@github.com wrote:I have: [‘/’, List] [‘/page/:pageNumber’, List]
in my router. If I navigate to ‘/’ I can click the links I have set up such as html
<a href="/page/${ pageNumber + 1 }">More</a>
to change the page number and have the route change to ‘blahblah/page/2’ in the address bar. However, I can not seem to directly navigate to any route with multiple slashes. I get a 404 if try to go to the page directly. I am serving this with budo locally. I understand this is probably something more to do with budo/sheet-router. I couldn’t come up with anything after perusing through the sheet-router and budo docs. I was wondering if someone could point me in the right direction? Thanks.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
No worries, glad you got it sorted!On 21 Feb 2017 06:50, Ryan Eppers notifications@github.com wrote:Thanks for offering to check. I found out the --base option is also needed for nested paths to work correctly. Everything works as intended now 😃 Again, I appreciate you following up with me.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.