hi,
I have a problem with my multilingual sitemap , the main language (‘fr’ here) sitemap does not display the canonical url : see https://www.productivix.com/fr/sitemap.xml displays Urls as https://www.productivix.com/about/
instead of : https://www.productivix.com/fr/about/
The other sitemaps for “en” , “de” are well
The hugo.toml parts for that are :
[sitemap]
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
theme = 'ananke'
#####Languages####
defaultContentLanguage = 'fr'
#defaultContentLanguageInSubdir = true // no because the 404 page does not display
So Google Search Console tells me that my /fr pages given are not canonical
What should I modify please ?
I do not understand well your answer. You mean that the parameters I wrote ask Hugo to do so.
Yes I do imagine, but it is not recommended in fact for the SEO.
I mean Google saw that the ‘/fr/add’ is the canonical for ‘/add’ ( I do not know how…) , so that is to be avoided.
Is the solution to activate in hugo.toml :
defaultContentLanguageInSubdir = true
?
It works now in test of the site , and I have no more problems with the 404 pages as beginning of that month.