I'm using XML sitemap 6.x-1.0-rc2 and it appears that it adds the main page to the sitemap twice for some reason. It writes the following to the sitemap.xml file (domain changed):


http://www.example.com/
2009-07-24T19:50:51+00:00
weekly

1.0


http://www.example.com/node/1

2009-07-30T20:36:44+00:00
weekly 0.9

So why it adds node/1 as well as the main page, when they're the same, I don't know. I did fix it by going to Edit on the homepage, and setting the XML sitemap priority to "do not include". This kept the main page at 1.0, and removed the node/1 entry. I've marked this as minor since it's an easy workaround, but I still think it could be a bug.

Comments

m.rademacher’s picture

Oh balls, I forgot to include the sitemap stuff in code tags, so it should be like this:

<url>
  <loc>http://www.example.com/</loc>
  <lastmod>2009-07-24T19:50:51+00:00</lastmod>
  <changefreq>weekly</changefreq>
  <priority>1.0</priority>
</url>
<url>
  <loc>http://www.example.com/node/1</loc>
  <lastmod>2009-07-30T20:36:44+00:00</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.9</priority>
</url>
Anonymous’s picture

Status: Active » Closed (works as designed)

They are different links. The /<front> page (your first link) can have multiple node previews listed while /node/1 will only be the contents of node 1. It is the way Drupal works.

m.rademacher’s picture

I wasn't aware of that. I'm rather new to Drupal. Alright, then I consider this closed.