File based nested routes not working as expected
I'm trying to load pages with dynamic routes.
Here is my router structure.
1. _private->projects->$projectId
2. _private->projects->$projectId->cards->$cardId
Always loading 1st router when trying to navigate to 2nd router. Is there any work around for this?
Thanks
4 Replies
wise-white•8mo ago
just guessing here as you did not present a complete example
you probably need
_private / projects / $projectId / index.tsx
_private ( projects / $projectId / cards / $cardId.tsx
flat-fuchsiaOP•8mo ago
I fixed this way thank you
wise-white•8mo ago
(btw this is not a "workaround" but the proper setup)
flat-fuchsiaOP•8mo ago
got it thanks Manuel