Static GitHub Issues

[432] support vue-router alias and redirect

prev: SSR debug
next: how to use the <keep-alive> in nuxt.js ?

In our application we would like to use a vue-router alias to map / to /something for the time being. We can not currently do this in Nuxt.js using extendRoutes() as it can only be used to add a new component based route.

Can additional API be added such that we can extend the router in anyway that we would like and make use of these vue-router features?

As a workaround we are using redirect() in Nuxt.js middleware.

I tested the vue-router features by manually modifying the generated router.js file and it seemed to work without issue. If this is true the change only requires additional API to allow the modification to be passed through.

Thank you for the consideration.

<!--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/c379">#c379</a>)</em></sub></div>