Closed (fixed)
Project:
XML sitemap
Version:
6.x-1.x-dev
Component:
xmlsitemap_node.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Dec 2008 at 20:29 UTC
Updated:
28 May 2015 at 13:34 UTC
Jump to comment: Most recent
Comments
Comment #1
avpadernoComment #2
avpadernoWhich else XML Sitemap modules do you have enabled?
Comment #3
AlexisWilke commentedI have all modules turned on except the File module that was causing problems.
I suppose one could come from the nodes and one from the menu module? I'm not too sure why the term and user would generate such a problem. So why would the page be repeated 4 times?
Let me know whether I would need to test without such and such and report what I see.
Thank you.
Alexis
Comment #4
avpadernoTake in mind that xmlsitemap.module shows the alias of the links passed by the other modules; if two links have the same alias, then you will see it twice.
It's likely that the duplicates come from xmlsitemap_menu.module; I thought that could be desired, but I now think it is better if also xmlsitemap_menu.module checks first if there is already a link before to add it to the site map.
I am rewriting the module, so it will take me a little to commit these changes to Drupal CVS repository.
Comment #5
Andy1981 commentedI'm not sure that this is actually so much a bug as a duplicate entry caused by using a url alias. I use the global redirect module which removes duplicate reference to nodes, etc. (i.e. node/4 has an alias /info/something, global redirect removes node/4 from appearing externally - and you will only see info/something in the sitemap).
Comment #6
avpadernoThe links shown in the site map could be not aliased, if the module would not use a function to get back the alias of a URL.
Global redirect doesn't affect in any way the output of XML Sitemap.
The module that you are talking of simply creates a 300 redirection from the node URL to its alias URL.
Comment #7
AlexisWilke commentedOnline247Solutions,
If you look at the XML snippet that I have shown, the path is .../faq several times and not .../faq and .../view/5.
So the problem is quite different.
Thank you.
Alexis
Comment #8
avpadernoI replied to your I use the global redirect module which removes duplicate reference to nodes. The module doesn't influence the output produced by XML Sitemap, if that was what you meant; otherwise I don't know what the reference to Global Redirect means.
Comment #9
avpadernoDoes the issue still appear in the latest versions of the Drupal 6 branch?
Comment #10
avpadernoI am setting the report as fixed because the report didn't get any feedback in more than 2 weeks.
Comment #13
rphair commentedI ran into this problem immediately; our site is also set to use a node URL as the home page. We are using the XML sitemap node module and we had the front page node appearing in the sitemap twice: as both its alias URL and the home page. This was fixed by editing the front page node and setting Excluded in its XML Sitemap section.
So I can confirm this feature has already been provided in xmlsitemap_node. When switching to xmlsitemap_menu the sitemap matches the menu structure perfectly (no duplicate for the alias URL).
Comment #14
rphair commentedplease scratch the last comment, intended for issue 596008.