-
Notifications
You must be signed in to change notification settings - Fork 180
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
Nested route only works with double slashs at end??????? #708
Comments
Would you provide a minimal reproduction instead of just showing the code? You can use StackBlitz, for example. One of benefits of providing it is that we could folk your code and share fixed version if it's just a mistake. |
Thank you for providing the reproduction!! As far as I checked, there seems to be a bug in h3 routing. At the moment, one workaround is to stop using top-level router and let api router look up its routes. https://stackblitz.com/edit/stackblitz-starters-ygfkoc?file=src%2Fapp.ts |
ok, thanks for the support @NozomuIkuta :) Should I close the issue or leave it open for resolution of the bug/documentation/or similar? |
My pleasure. |
Yep! |
Environment
h3 - 1.11.1
node - 18
Reproduction
Describe the bug
The nested router, only works if the path have two slashes at end of url,
http://localhost:3000/api//
, without double slash, throw a 404 error.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: