Static GitHub Issues

[641] Docs misleading about extending routes

prev: date type is not serialized properly
next: i find in ie 9 , when i visit a url such as 'http://www.b.com' it will auto add '#' to the end

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 :-) )

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c555">#c555</a>)</em></sub></div>