• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Setting index page route causes duplicate entry in XML Sitemap

Affected version
2.0 Beta 3

Chris D

XenForo developer
Staff member
#2
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?
 

Mike

XenForo developer
Staff member
#3
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.