Layout route
I have a route
I'm using file based routing:
What I want is the route
I tried to redirect to
Not sure that this is the right way, maybe someone could give me some advice here ?
thanks
/account that has two children so /account/settings and /account/edit.I'm using file based routing:
What I want is the route
/account to not be reachable but only child routes and keep account in the url.I tried to redirect to
/account/settings in the route.tsx file in a loader or beforeLoad but it gives me an error of too many redirects so I ended up with this solution so if user want to access /account the notFound component is renderedNot sure that this is the right way, maybe someone could give me some advice here ?
thanks