Closed AleeeKoi closed 3 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:
/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
@AleeeKoi Could you provide a reproduction sample on codesandbox?
Hello, Can you give us an example how to use this module with i18n
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
: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