O
O
olegcsa2019-12-12 17:47:38
Vue.js
olegcsa, 2019-12-12 17:47:38

How to implement such routes in nuxt.js?

Is it possible to implement such a route structure on nuxt.js
example.com/:product/:code
example.com/:category/:code
where
:product - product slug
:category - category slug
:code - product code consists of prefix 'p ' and a number (p12345), for a category the code consists of the prefix 'c' and a number (c12345).
If this is still possible to implement, will it not affect performance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2019-12-12
@olegcsa

Possibly :

/:product/:code(p\\d+)
/:category/:code(c\\d+)

Will not affect performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question