You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open /a/o - see alpha and omega params present (correct)
Open /a/delta (delta is the name of the other folder here), see only the alpha param.
To "resolve"/"have a workaround:
Create a delta/index.get.ts as a "duplicate" of the omega [omega]/index.get.ts handler
Describe the bug
When using same-level folders with index files split by method, the router parameters get lost for requests not having a .method.ts file in every of the folders, when the path would match a subfolder.
The responsible handler is always correctly resolved though, but route params are missing.
Environment
Stackblitz
Reproduction
https://stackblitz.com/edit/nitro-2389
/a/o
- seealpha
andomega
params present (correct)/a/delta
(delta is the name of the other folder here), see only thealpha
param.To "resolve"/"have a workaround:
delta/index.get.ts
as a "duplicate" of the omega[omega]/index.get.ts
handlerDescribe the bug
When using same-level folders with index files split by method, the router parameters get lost for requests not having a
.method.ts
file in every of the folders, when the path would match a subfolder.The responsible handler is always correctly resolved though, but route params are missing.
Additional context
Reported in nuxt/nuxt#26903
Logs
No response
The text was updated successfully, but these errors were encountered: