Static GitHub Issues

[710] Routes generation params and redirects

prev: ssr asyncData
next: i18n should not be like this?

Hi, guys!

I have two issues with routes: 1. All parameters generated as optional, even with index.vue files pages: pages generated routes: routes

  1. extendRoutes option lead to empty import I'm trying to add redirects like: extendroutes and generated routes.js looks like:
const _29172c1a = () => import('' /* webpackChunkName: "pages/" */)
...
{
	path: "/icon",
	component: _29172c1a
},
{
	path: "/icon/new-icons",
	component: _29172c1a
}

and when I use 'npm run dev' I got:

This dependency was not found:
*  in ./.nuxt/router.js
To install it, you can run: npm install --save

Using nuxt 0.10.7

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