First element in route.matched
has name
set to undefined
#2450
Unanswered
simoneboccolari
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I'm attempting to create a basic breadcrumb component that generates "crumbs" using the router logic. For this, I have structured my routes as follows:
When I navigate to /user/10/edit and inspect the route.matched elements like this:
I notice that the first element in the
route.matched
array has thename
property always set toundefined
.Expected Behaviour:
I expect the
name
property for all matched routes, including the first element, to correspond to the route's name.Questions:
Environment:
Additional Notes:
Thank you for any assistance and for the quality standard of the vue-router project.
Beta Was this translation helpful? Give feedback.
All reactions