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
absent-sapphire•10mo 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
broad-brownOP•10mo ago
I fixed this way thank you
absent-sapphire•10mo ago
(btw this is not a "workaround" but the proper setup)
broad-brownOP•10mo ago
got it thanks Manuel