You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When deploying locales to separate domains, URLs in the sitemap do not use the specified domain #12013
I have read the console error message carefully (if applicable).
Description
I noticed that Google Search Console was not reading the sitemap for my second locale that I deploy to a separate domain. When I opened the sitemap file, I saw that the URLs in the sitemap all pointed to my first locale's domain.
For reference, sitemap is configured as follows, but I don't see any options that would affect this:
Deploying these locales to your-primary-domain.com and your-secondary-domain.com works fine, but if you check the sitemap.xml in your-secondary-domain.com, you will find that each item (a element) lists a URL from your-primary-domain.com
Expected behavior
When deployed to separate domains, locales should have independent sitemaps that include only the pages within that domain.
Actual behavior
The sitemap for the second locale uses the first locale's domain. I assume it is actually using the domain specified outside of the i18n block, but I have to specify some domain there (in the url parameter).
Your environment
Use the feature introduced in 3.9.x where you can deploy locales to separate domains. The rest shouldn't matter.
Activity