-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Wrong route handler used/RouteParams lost #26903
Comments
Start a new pull request in StackBlitz Codeflow. |
|
@manniL Uhm... care to explain how it is related? |
Sorry, my bad 🙈 Was meant to be in a different tab! |
Can you kindly explain what the issue is here?
|
happens 😂 Call /api/alpha/delta now - you'll end up in the omega-handler with only the alpha-param. |
Opened upstream in unjs/nitro#2389 |
Let's track there 🙏 |
Environment
Reproduction
https://stackblitz.com/edit/github-eldm7g?file=README.md
Describe the bug
Having following route configuration:
I would expect a
get
-request to end up on the only matchingget
handler (:omega
), with all the dynamic route parameters. Instead, the value for:omega
is lost.Additional context
UseCase: We have handlers for standard crud-operations on a generic endpoint (
/api/[resourceType]/index.get.ts
and so on). Some of these resourceTypes require special handling...Logs
No response
The text was updated successfully, but these errors were encountered: