Home

Issue: 2611

this.$route.matched only returns one route

[issue link]

I’m trying to build a breadcrumb. The problem is that with dynamic routes $route.matched only seems to return the current route.

Please see the example routes below (associated files in parens):

/users (pages/users/index.vue)
/users/:id (pages/users/_id.vue)

Are there any recommendations on how to best go about building up a breadcrumb with Nuxt? Shouldn’t I be seeing parent routes in $route.matched?

This question is available on Nuxt.js community (#c2271)