T
TanStack10mo ago
broad-brown

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

Did you find this page helpful?