Home

Issue: 1636

multiple route params on a page

[issue link]

Hello !

I want to generate an url in that format : http://mysite.tld/blog/{slug}-{id}

So I tried to create a page named : /pages/blog/_slug-_id.vue

Nuxt seems not generating the routing as expected.

{
  path: "/blog/:slug-_id?",
  component: _f8ebb47a,
  name: "blog-slug-_id"
}

Is there a page naming convention in nuxt to deal with this route format ?

Or do I have to inject my needed route using router.extendRoutes config ?

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