Hostwiki/wikijs-sitemap

Locales missing in urls

rungeard opened this issue · 4 comments

When generating the sitemap XML, locales seem to be ignored.

For example I've got

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- Wiki.js sitemap generator by https://hostwiki.com -->
<url>
    <loc>https://domain.tld/new-page</loc>
    <lastmod>2023-11-30T13:49:20.203Z</lastmod>
  </url>
<url>
    <loc>https://domain.tld/new-page</loc>
    <lastmod>2023-11-30T13:49:24.491Z</lastmod>
  </url>
</urlset>

instead of

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<!-- Wiki.js sitemap generator by https://hostwiki.com -->
<url>
    <loc>https://domain.tld/en/new-page</loc>
    <lastmod>2023-11-30T13:49:20.203Z</lastmod>
  </url>
<url>
    <loc>https://domain.tld/fr/new-page</loc>
    <lastmod>2023-11-30T13:49:24.491Z</lastmod>
  </url>
</urlset>

Good catch.
I have an incoming trip so will fix it next week.
Remind me If I don’t.

Hi @Philipinho !
Thank you so much you are my hero !
Do you have any status on it ?

Fixed in 7b492ff.

Please confirm if it works well for you.

It's perfect ! Thank you so much !