NOTE: After a couple tests, @kirrg001 figured out this only happens when you upload your routes.yaml file through the admin. There is a way to fix it, if you restart your ghost server after uploading the routes file.
Using the multi-language feature (dynamic routing), it creates duplicated records on the /sitemap-pages.xml file (see image)

Using this routes.yaml file:
routes:
collections:
/:
permalink: /{slug}/
filter: 'tag:-[en,es]'
template:
- index
/en/:
permalink: /en/{slug}/
filter: 'tag:en'
/es/:
permalink: /es/{slug}/
filter: 'tag:es'
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
Hey @TonnyORG!
From the docs:
Beta requirement: Specify inverse filters!
In the current beta version of Dynamic Routing it's necessary to specify the inverse of filters in earlier collections so that pagination is correct.
Could you please update your filters and report back? Thanks!
@kirrg001 ty for your response, routes file updated the issue persist:
routes:
collections:
/es/:
permalink: /es/{slug}/
filter: 'tag:es'
template:
- index
/en/:
permalink: /en/{slug}/
filter: 'tag:en'
template:
- index
/:
permalink: /{slug}/
filter: 'tag:-[en,es]'
template:
- index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
I can't reproduce what you are reporting.
And the code for it adds exactly one entry per router e.g. for /es/ and for /en/ to the sitemap.
Not sure what else to test.
@kirrg001 here is a public URL: https://fullstack.mx/sitemap-pages.xml with this issue, let me know if you need more information.
@TonnyORG I believe you, i just can't reproduce 馃槥
Does that maybe only happen after uploading the routes.yaml file in the admin client? I can imagine it's related to that.
Yeah it is. Can reproduce 馃憤If you restart your blog, this is gone for sure.
@kirrg001 I'm going to try to reproduce it somewhere else to see if I can find a pattern.
That's a good point, I did upload the routes.yaml from the admin.
@kirrg001 confirmed, it worked restarting ghost. Thank you very much!
馃憤 Will be released on Tuesday
Ty very much 馃槃