TanStackT
TanStack13mo ago
10 replies
conventional-black

Multiple path params?

I'm having trouble with multiple path params. I have a wiki structure, e.g.

handbook.tsx
handbook.$slug.tsx
handbook.$slug.$slug.tsx


A route can be a page or a sub-page.

The first level of pages works fine, but subpages do not. When I console.log Route.params in the child page route file, I only get the first level slug, not the second. When I navigate to "handbook/my-page/my-subpage", I get a 404. When I navigate to "handbook/my-page", I get the correct page.

Any ideas on how I can implement this? Thanks
Was this page helpful?