Several pages are doubled in the sitemap

I have the sitemap plugin installed. As already stated in the title, some pages are twice present in the sitemap.xml. Don’t know why!

Hi, can you identify which pages are duplicated, maybe there’s a pattern in the duplication that can help identify why?

This is the sitemap.xml:

<urlset>
  <url>
    <loc>http://swingfield.band</loc>
    <lastmod>2015-08-27</lastmod>
  </url>
  <url>
    <loc>http://swingfield.band/ueber-uns</loc>
    <lastmod>2015-10-02</lastmod>
  </url>
  <url>
    <loc>http://swingfield.band/galerie</loc>
    <lastmod>2015-10-01</lastmod>
  </url>
  <url>
    <loc>http://swingfield.band/galerie</loc>
    <lastmod>2015-10-01</lastmod>
  </url>
  <url> 
    <loc>http://swingfield.band</loc>
    <lastmod>2015-08-27</lastmod>
  </url>
  <url>
    <loc>http://swingfield.band/impressum</loc>
    <lastmod>2015-10-02</lastmod>
  </url>
  <url>
    <loc>http://swingfield.band/ueber-uns</loc>
    <lastmod>2015-10-02</lastmod>
  </url>
  <url>
    <loc>http://swingfield.band/videos</loc>
    <lastmod>2015-10-02</lastmod>
  </url>
</urlset>

Try this: add

$routes = array_unique($pages->routes());

in line 62 of user/plugins/sitemap/sitemap.php, instead of $routes = $pages->routes();. Does that fix it?

Yes, it does! Thank you!

ok, will add that to the plugin

Added! will be in the next release