Nested folder routes
The folder structure is in the image. When navigating to /projects/{projectId} I am seeing the page that's rendered on /projects. What am I missing?
Why is the parent route of projectId in routeTree.gen.ts project and not root:

4 Replies
foreign-sapphireOP•2y ago
fixed by creating an ~index folder and putting the ~route.lazy.tsx and ~route.tsx from /projects in it
flat-fuchsia•2y ago
You could also simplify this a bit by using the
routeFileIgnorePrefix on a directory instead.
Like:
foreign-sapphireOP•2y ago
i am already using the routeFilePrefix