Skip to Content
Menu
This question has been flagged
4 Replies
5123 Views

Hi,

Is there a way to add or translate Odoo content page URLs on a multi-language website?

We have a multi-language website with 2 different language (English, French) So for English page URL is like this.

/page/corporate-development

Default Odoo it would be like this when we access French.

 /fr/page/corporate-development

What we are looking for actually one like this where we can add/translate page URL.

Ex:

/fr/french-name-for-page/developpement-de-lentreprise

I cannot find out how to do this with Odoo 13CE. Do we have an module for this?

 If anyone can help or give a solution would be great.

Avatar
Discard
Best Answer

Hello,

You can use this module

https://github.com/OCA/website/tree/10.0/website_seo_redirection

or

You have to create custom module which get urls , translate it and redirect it.
Avatar
Discard
Author Best Answer

Thanks Muhammad, website_seo_redirection is only for odoo 10.

Thanks Mohamed Mostafa, I watched the video training. But It doesn't solve my problem, do you have a suggestion for me?

Thanks

Dear Mohamed

"This happens by default if the translation is accurate. Check URL Management section in Odoo website training 

Go to Odoo home page > Learn > Website > URL Management"


The instructional video I think is incorrect, try shortening the URL as the tutorial on the 3:58 time video. She shortens the URL to "/15" but when she entered, it automatically becomes the old URL (/ produits-maison-vs-produits-industriels-2019-15). This does not mean that the URL (/ produits-maison-vs-produits-industriels-2019-15) has been shortened to "/15". But in the tutorial video I understand that the URL has been shortened to "/15". Has someone confirmed this, or I'm wrong.

Thanks


Avatar
Discard

What is a shortened URL? Basically, some of Odoo controllers are addressed by unique identificator of the related object. So, if blog ID is 1, it might be accessed by ...post/1. The last part ‘/1’ might be enriched with any key words, while the target would be still the same:

* post/1 = post/my-post-1 = /post/my-great-post-1 = /post/[any-transliteration]-1

As soon as a user reaches the address, the URL is adapted to a default one: post/[BLOG POST NAME]-1.

BLOG POST NAME is language specific. So, if you translated that, it would be included into the URL on the target language. Let assume the blog post name is ‘Good’ and its translation to French is ‘bon’. Then:

* Default URL = post/good-1

* Default URL in French = fr/…./post/bon-1

Take into account those features relate ONLY TO controller-based pages, where those features are configured: blog posts, e-shop products, forum questions (look at the above URL on this page).

It does NOT work for website pages you created manually (through new > page mainly). The latter do not have IDs inside, so their text address is considered as unique locator. Technically, they do not have an own controller starting from the version 11. So, custom page title does not influence its URL, and it is the same for all languages. For that case have a look at the app I referenced in the answer below.

Best Answer

Hello David,

This happens by default if the translation is accurate. Check URL Management section in Odoo website training 

Go to Odoo home page > Learn > Website > URL Management

Good Luck

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 24
3462
0
Nov 24
87
0
Mar 24
279
2
Sep 23
2104
2
Mar 23
3798