Locales missing in urls
rungeard opened this issue · 4 comments
rungeard commented
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>
Philipinho commented
Good catch.
I have an incoming trip so will fix it next week.
Remind me If I don’t.
rungeard commented
Hi @Philipinho !
Thank you so much you are my hero !
Do you have any status on it ?
Philipinho commented
Fixed in 7b492ff.
Please confirm if it works well for you.
rungeard commented
It's perfect ! Thank you so much !