Home

Issue: 2985

Dynamically generated route path does not work for snake case page names

[issue link]

If I create a new nuxt page called sign_up.vue, createRouter() in router.js from nuxt generates the following route:

routes: [
{
  path: "/sign:up",
  component: _1afcc2c0,
  name: "signup"
},

With this bug, I wouldn’t be able to create another page called sign_in.vue as it collides with the dynamically generated route.

https://spiky-part.glitch.me is an example of this bug.

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