xmlsitemap
xmlsitemap copied to clipboard
Multilinguage loc url not working as expected
Hi,
I'm using your promising plugin on this trilingual website: https://correspondances.ch/sitemap.xml
The sitemapindex
looks fine, but when I look inside each language sitemap
, all <loc>
urls start with the default language https://correspondances.ch/fr
instead of their corresponding languages: https://correspondances.ch/de
and https://correspondances.ch/en
.
If it helps, here is the beginning of my 3 languages config files:
<?php
return [
'code' => 'fr',
'name' => 'Français',
'default' => true,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'fr_FR'
],
'url' => '/fr',
<?php
return [
'code' => 'en',
'name' => 'English',
'default' => false,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'en_US'
],
'url' => '/en',
<?php
return [
'code' => 'de',
'name' => 'Deutsch',
'default' => false,
'direction' => 'ltr',
'locale' => [
'LC_ALL' => 'de_DE'
],
'url' => '/de',
What am I doing wrong? 🤔