pecotamic / sitemap

Sitemap for Statamic v3
6 stars 9 forks source link

Multisite: FR and EN sitemaps show DE urls #20

Closed motion-work closed 1 year ago

motion-work commented 2 years ago

I have a multisite domain where this package generates me the following three sitemaps:

but in /fr/sitemap.xml and /en/sitemap.xml the XML only contains the DE URLs. Also I did not touch the config file. The Slugs are set correctly in the CMS. For example /karriere should be /career in EN

Any ideas?

Bergrebell commented 1 year ago

any updates on this?

werner-freytag commented 1 year ago

I will have a look at it in the next weeks!

werner-freytag commented 1 year ago

I cannot confirm this issue: The pages are filtered by locale, only pages for the current site locale are included in the output. In my test environment everything works as expected.

Did you configure the sites locale correctly?

werner-freytag commented 1 year ago

Okay, I have found an error: The generator used the handle of the page and not the locale. So if you used a different handle, the page filter did not work as desired. It will be fixed in the next release.