Dynamic nested routes with nuxt

Hi,

I'm building a site using Prismic and Slice Machine in Nuxt, but I'm struggling finding a solution for my nested routes. Here's what i want to achieve:

  • I have a "Pages" repeatable type in order to create various pages with slices.
  • One or more of these pages will have nested routes.
  • For example, the page "who-we-are" will have two levels of nested routes: "/who-we-are/:subUID" and "/who-we-are/:subUID/:memberUID" (ex: "/who-we-are/control-team/marika")

How can I achieve something like this?

I semi-managed by doing this:

but i encountered another problem with :lang !
I don't know why the links are resolved with a work locale code like: /it-it/chi-siamo/organo-di-controllo/test, instead it needs to be: /it/chi-siamo/organo-di-controllo/test.

Why so?

1 Like

Hi @stefano.franceschett

Welcome to the Prismic community, and thanks for letting us know,

I'm currently investigating this and will let you know as soon as possible.