I’d like to have rails-style namespace in router. How can I do so that /settings would not exist, but there was /settings/profile
and other routes under /settings
? Redirect to default subroute would be fine too, but I obviously can’t do that in SettingsRoute’s activate
. Any hints?
I use the index route for this (settings.index
or SettingsIndexRoute). The index route is only entered for the base URL (/settings
) and won’t run its hooks for any of the other routes in the namespace. Here’s some more info about the Index route.
1 Like
Oh, right! Totally forgot about it. Thanks!