A
A
Andrei Popov2020-07-26 13:44:38
Vue.js
Andrei Popov, 2020-07-26 13:44:38

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

2 answer(s)
P
prrrrrrr, 2020-07-27
@andrei500

Well, if you take the product, then:

- /product?id={product id}

this is definitely not an option.
- /product/{product id}

not so good from seo
- /product/{product name}

the most normal option
and about this:

- /category/{category name}/{product name}
- /{category name}/{product name}

already answered by Eugene

D
Dimonchik, 2020-07-26
@dimonchik2013

in general, from a flashlight,
you can read and follow some book in VUE, or you can in this one:
978-5-97060-861-6-1_270_369_jpg__100.jpg
everything is determined by customers (CEO there and so on)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question