vuestorefront-community / odoo

https://docs.vuestorefront.io/odoo/
MIT License
66 stars 26 forks source link

SEO friendly (Custom URLs) #48

Closed ska-ibees closed 2 years ago

ska-ibees commented 2 years ago

What is your question / Please describe your issue

Is it possible to define completely different URLs within vuestorefront?

For example:

shop/product/iphone-11 => /iphone shop/category/computers-12 => /desktop-computers blog/our-blog-1/post/the-future-of-internet-1 => /future-of-internet

What version of odoo integration are you using?

15.0

Code of Conduct

odranoelBR commented 2 years ago

Hi @ska-ibees , yes it is, we have a feature to generate routes based on configuration in odoo. In you example, you can have computers-12 category configured in odoo with the slug /desktop-computers. The vsf will read this value to create the route. The search will happen by slug, so they must be unique and Id is not required.

Check https://github.com/vuestorefront-community/template-odoo/blob/dev/customRoutes/products.json This file is dynamic generated from odoo configuration.