Fixed Setting index page route causes duplicate entry in XML Sitemap

Kirby

Well-known member
Affected version
2.0 Beta 3
If an index page route is configured and this route is a Page, the root url does appear twice.
 
I can't reproduce this, but also we've not changed anything here as far as I can recall.

I've created a page called "home" and I've set it as my index page route. I've removed all content types from my options and just left "Nodes", and the end result is:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
    <url><loc>http://localhost/20x/index.php</loc></url>
</urlset>
If anything, I expected:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
    <url><loc>http://localhost/20x/index.php</loc></url>
    <url><loc>http://localhost/20x/index.php?pages/home/</loc></url>
</urlset>
But that doesn't appear to be the case. Is that the behaviour you're seeing?
 
As it so happens, I was able to reproduce this. I didn't change anything else but set a forum to the index page route and got:

Code:
    <url><loc>http://localhost/xenforo2/</loc></url>
    <url><loc>http://localhost/xenforo2/categories/main-category.1/</loc></url>
    <url><loc>http://localhost/xenforo2/</loc></url>
So this is fixed now.
 
Back
Top Bottom