T
TanStack8mo ago
flat-fuchsia

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
wise-white8mo 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-fuchsia
flat-fuchsiaOP8mo ago
I fixed this way thank you
wise-white
wise-white8mo ago
(btw this is not a "workaround" but the proper setup)
flat-fuchsia
flat-fuchsiaOP8mo ago
got it thanks Manuel

Did you find this page helpful?