Hi
I was trying to extend routes with router. extendRoutes
in nuxt.config.js
. In documentation https://nuxtjs.org/api/configuration-router/#extendroutes there is written, that:
The schema of the route should respect the vue-router schema.
So I've tried to use some vou-router magic, eg. define redirect in form of { path: '/a', redirect: '/b' }
as described here https://router.vuejs.org/en/essentials/redirect-and-alias.html or pass props as described here https://router.vuejs.org/en/essentials/passing-props.html
Then it appeared that some part of vue-router schema are not passed to .nuxt/router.js
at all! It looks like only some explicitely defined properties are passed, as you can see here: https://github.com/nuxt/nuxt.js/blob/v0.10.6/lib/app/router.js#L15
In my opinion either documentation should not suggest vue-router schema support (or .nuxt/router.js
should consists all routes' properties provided by User, even custom ones :-) )