Wrong domains in simple sitemap generated

Steps to reproduce

In a D8 installation:
1.-Install "drupal/simple_sitemap": "^3.6"
2.-Install "drupal/domain_simple_sitemap": "2.x-dev"

3.-Create 2-3 domains records with Domain module V. 8.x-1.0-beta2 Example: us,ca,eu
4.-In simple sitemap xml (/en/admin/config/search/simplesitemap) create new variants:
us | domain | US Domain Sitemap
ca | domain | CA Domain Sitemap
eu | domain | EU Domain Sitemap
5.-Go to any content type and enable it for Simple XML Sitemap in those domains.
6.-Having some content pages for those domains, run Cron.
7.-Regenerate xml sitemap (/en/admin/config/search/simplesitemap).
8.-Open each xml per domain (/us/sitemap.xml , /ca/sitemap.xml , /eu/sitemap.xml).
You will see that sometimes the url in the xml list doesn't have the domain or sometimes doesn't have the correct domain for example if you open US you can get https://yourUrl.com/eu/[x language]/test.

Do you know what can fix this issue, i'm using the latest version of domain simple sitemap

Comments

mpena created an issue. See original summary.

gbyte’s picture

Project: Simple XML sitemap » Domain Simple XML sitemap
Version: 8.x-3.6 »

Moving this issue to the appropriate project.