nuxt-community / router-extras-module

Extra Add-ons For Nuxt 2 Router
https://codesandbox.io/s/github/nuxt-community/router-extras-module
MIT License
279 stars 12 forks source link

Alias route whit locale path #131

Closed AleeeKoi closed 3 years ago

AleeeKoi commented 4 years ago

Hello! I'm trying to reuse an existing route simply redefining it's nesting path. So this is what I have done:

In my existing page that responds to the path /path1/:id1/path2/:id2:

<router>
  {
    alias: [
      '/path3/:id1/path4/:id2',
    ]
  }
</router>

Compiling it, I can see that the alias is associated in the existing path.. but calling the alias page I get an error 404 (existing page works well).

I'm using also nuxt-i18n module that always prepends the lang code to the url path.

Where I'm wrong? Thank you

farnabaz commented 3 years ago

@AleeeKoi Could you provide a reproduction sample on codesandbox?

karimennassiri commented 2 years ago

Hello, Can you give us an example how to use this module with i18n