Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to change nested route separator? #294

Open
3 tasks done
dvlden opened this issue Sep 21, 2022 · 0 comments
Open
3 tasks done

Option to change nested route separator? #294

dvlden opened this issue Sep 21, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@dvlden
Copy link

dvlden commented Sep 21, 2022

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.
@hannoeru hannoeru added the enhancement New feature or request label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants