Using file based router to manage directories routes and redirect to child route.
If using file based router, like:
In index.tsx:
It works but routeTree was flatten;
Then I try to change
index.tsx to route.tsx, route.tsx can make nested routeTree, but seems using redirect in route.tsx loader will caused error
So,How can I make this works:
- file based route;
- /layout will redirect to /layout/foo;
- using directories to organize all routes/pages in layout/;0 Replies