Ticket #13240 (confirmed Bug)
sitemap.xml.gz lists both URLs for a folder and for its default view
Reported by: | fulviocasali | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 3.3 |
Keywords: | Cc: |
Description
I downloaded sitemap.xml.gz for a site, and found that it contained URLs for folders as well as for the default view (landing page) of each folder. I.e., if foo is a folder, and bar is a page inside the foo folder which is set to be the default view for foo by the "display" menu, both
are listed.
This is bad for Search Engine Optimization. Ideally, just one URL for each content item should be made visible to search engines.
I have found this on a Plone 3.3.4 site, and I still need to check whether this happens in newer Plone versions, and whether it has been fixed.
I will also look into a fix: sitemap generation is one view and very simple, and is based on catalog. As long as default view information is exposed on the catalog, we can just add a filter function there.