Nested path being caught by parent route
I have two files
- $breed.tsx
- $breed.$subbbreed.tsx
The nested route is being intercepted by the first route in file based routing. Am I doing something wrong?

7 Replies
national-goldOP•2y ago
xenial-black•2y ago
I can only guess since you did not provide a minimal complete example.
$breed.tsx must contain an <Outlet /> so that $breed.$subbreed.tsx is rendered within itnational-goldOP•2y ago
No outlet in there. Looks like this
( i recently added subbreed while debugging, ignore )
xenial-black•2y ago
can you please provide a minimal complete example on stackblitz e.g. by forking one of the existing tanstack router examples?
national-goldOP•2y ago
Hmm everytime I try forking, I get this error. I'll try a few more things...

xenial-black•2y ago
try codesandbox instead?
national-goldOP•2y ago
The solution was with my file based routing naming:
Fixed it.
For flat paths,
$breed.index.tsx and $breed.$subbreed.tsx would fix it too.
Thanks for the assist.