Nuxt 2 page with dynamic params

I have a dynamic link with path /user/reset/{params1}/{params2}/{hash}/json And I created page in /pages/user/reset/_slug.vue , but in works only with 1 param. How can I create page for this path?

Upvotes: 1

Views: 615

Answers (1)

kissu
kissu

Reputation: 46676

You could either have /pages/user/reset/_param1/_param2/_hash.vue (param are directories here)
or you could use /pages/_.vue with an unkown dynamic nested route but this may also catch some other routes, not sure if it's the desired behavior here.

Upvotes: 2

Related Questions