Skip to content

Should be possible to set route name to undefined #565

Closed Answered by posva
ricardo17coelho asked this question in Questions and Help
Discussion options

You must be logged in to vote

It hasn't been documented yet, but an empty name will be allowed in the next release to allow not having autocompletion: 45de2b7

You still need to establish a navigation guard that prevents the user from entering the URL thought... So Ideally, you add a custom meta property like visitable^: boolean and check that meta property directly at to.matched.at(-1).meta (to.meta is a fusion of all routes so checking it would prevent visiting a child)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@posva
Comment options

posva Jul 2, 2025
Maintainer

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #530 on January 07, 2025 09:16.