Home

Issue: 1622

Manually reordering routes

[issue link]

Referencing vue-router issue: https://github.com/vuejs/vue-router/issues/703

Nuxt is doing this with routes:

		{
			path: "/",
			component: _50d71714,
			children: [
				{
					path: "",
					component: _0e9a02d2,
					name: "index"
				},
				{
					path: "dapps/:slug?",
					component: _40a1f196,
					name: "index-dapps-slug"
				}
			]
		},
                {
			path: "/dapps/:slug?",
			component: _57bef853,
			name: "dapps-slug"
		}

and I want to reorder them like this:

                {
			path: "/dapps/:slug?",
			component: _57bef853,
			name: "dapps-slug"
		},
		{
			path: "/",
			component: _50d71714,
			children: [
				{
					path: "",
					component: _0e9a02d2,
					name: "index"
				},
				{
					path: "dapps/:slug?",
					component: _40a1f196,
					name: "index-dapps-slug"
				}
			]
		}

Is it possible? This way, when I directly load /dapps/:slug, it will catch the first route and display a full page, but when I navigate to the child route, it will show a popup.

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