Option to change nested route separator?
dvlden opened this issue · comments
Description
At the moment, if we had a route like auth/register
to use it as a named route, we'd need to use -
as a separator.
<RouterLink :to={ name: 'auth-register' }>Registration</RouterLink>
I'd like to change the separator to a forward slash /
instead or a .
, but I do not see this option available.
<RouterLink :to={ name: 'auth/register' }>Registration</RouterLink>
Also, if we had a route with a dash/minus in the name like manage-users
, the named route would still be identical to the nested route above. This makes it unclear, is it nested, or is it just that name?
Suggested solution
Just allow a configuration option to set routeNameSeparator: '-'
, or something along these lines.
Alternative
No response
Additional context
No response
Validations
- Follow the Code of Conduct
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.