Answer the question
In order to leave comments, you need to log in
How are router paths designed in large spa applications?
How are router paths designed in large spa applications?
I'm making an online store on nuxt.js and I'm faced with the fact that I don't have a clear understanding of how to design routes. For example, there is a product page and it seems there are a lot of options for designing a route, for example:
- /product?id={product id}
- /product/{product id}
- /product/{product name}
- /category/{category name}/{ product name}
- /{category name}/{product name}
- ... and so on.
Can you recommend any tutorials on this topic?
Answer the question
In order to leave comments, you need to log in
Well, if you take the product, then:
- /product?id={product id}
- /product/{product id}
- /product/{product name}
- /category/{category name}/{product name}
- /{category name}/{product name}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question