You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportdefaultasyncfunctionasyncModule(){this.extendRoutes(functionextendRoutes(routes,resolve){routes.push({name: 'product-page',path: `/:product(game|software)/:uid/:slug?`,// <-- notice the optional slug used with "?"component: resolve(__dirname,'pages/product.vue')});}}
What is Expected?
A route with a path of /es-ES/:product(game|software)/:uid/:slug?/ should be created and listed in $nuxt.$router.options.routes
Browsing to /game/98f76a/cod/ should return the correct page as worked in [email protected]
What is actually happening?
A route with a path of /es-ES/:product(game|software)/:uid/:slug/? gets created (Notice the ? got moved to the end of the path) and listed in $nuxt.$router.options.routes.
Browsing to /game/98f76a/cod/ returns a 404 error page.
The text was updated successfully, but these errors were encountered:
Version
nuxt-i18n: 6.27.3
nuxt: 2.15.7
Nuxt configuration
mode:
Nuxt-i18n configuration
Steps to reproduce
nuxt.config.js
modules/routes.js
What is Expected?
/es-ES/:product(game|software)/:uid/:slug?/
should be created and listed in$nuxt.$router.options.routes
/game/98f76a/cod/
should return the correct page as worked in[email protected]
What is actually happening?
/es-ES/:product(game|software)/:uid/:slug/?
gets created (Notice the?
got moved to the end of the path) and listed in$nuxt.$router.options.routes
./game/98f76a/cod/
returns a404
error page.The text was updated successfully, but these errors were encountered: