How do i go about getting the different languages added to sitemap.xml? Now by default just the base language url's are added. Or there is no point in doing that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
There is indeed no point in doing that.
Odoo is using alternate
meta tag to inform crawler about translated version of the website.
Only the main language should be part of the sitemap.
See https://developers.google.com/search/docs/specialty/international/localized-versions?hl=fr
There is many ways to indicate google/crawler about the translations, and Odoo is using the alternate
tag to do so.
Today I came to the same conclusions. Wanting to find out a way to include all the language varaibles in the same SiteMap
Edit: I quickly did it myself.
In Views (Technical > User Interface > Views) go find your sitemap generator with key "website.sitemap_locs"
My default language is Spanish "/" or "/es/" and my additional language is english "/en" so I replaced with the following code. Now all URLs have an aditional url including "/en"
Note: copy pasting this quote is being rendered blank, so since I don't know how to escape it I'm uploading a screenshot of my text editor. Sorry !
After saving the view always deleted the cached version .xml version because the server has a 12h cache and you want to see the results of your tests. Go to Technical > Database > Attachments and delete the file "/sitemap-1.xml". Then load the homepage url of your website + "/sitemap.xml" to see your results.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
May 25
|
12 | ||
|
2
Jan 25
|
2473 | ||
|
1
Dec 24
|
6158 | ||
|
1
Nov 24
|
2610 | ||
|
1
Nov 24
|
1922 |