pecotamic / sitemap

Sitemap for Statamic v3
6 stars 9 forks source link

Multisite problem: only origin language URLs are generated #17

Closed gpluess closed 2 years ago

gpluess commented 2 years ago

Great plugin, thanks!

I've just installed it in a multisite Statamic project and noticed, that only URLs for the origin language are created in the sitemap.xml file.

My sites.php config file looks like this:

'sites' => [

    'en' => [
        'name' => 'English',
        'locale' => 'en_US',
        'url' => '/en/',
    ],

    'de' => [
        'name' => 'Deutsch',
        'locale' => 'de_DE',
        'url' => '/de/',
    ],

],

Not sure if I missed anything? When I change the order in my sites.php config file, only "de" URLs are shown in the sitemap.xml

Any help is greatly appreciated!

werner-freytag commented 2 years ago

Sorry for the long delay. I've just released an update which adds multi-site support. There is a separate sitemap for each site.