vendredi 5 janvier 2018

Angular URL like breadcrumbs

Suppose I have a private online shop made with Angular.

Suppose I have products that belong to a group and a category. A product have a unique identifier for all the shop.

In order to see a product I can just go to:

http://ift.tt/2quwTeE

I'm thinking on adding the group and category to that URL, although I don't need them to search the product or for SEO purposes (as it is a private and non indexable site), just to act like breadcrumbs or to be more friendly for customers, like this:

http://ift.tt/2m20IP1

That URL would be generated on the fly, so if I change the group name it would update it in the URL as well.

But for angular router, above URL and this one would show the same product:

http://ift.tt/2qwSqDN

Do you think this is useful? Do you find any strong disadvantage on this approach?




Aucun commentaire:

Enregistrer un commentaire