Needs work
Project:
XML sitemap
Version:
7.x-2.x-dev
Component:
xmlsitemap_taxonomy.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2016 at 03:10 UTC
Updated:
24 Jul 2020 at 16:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
varo90 commentedHi!
When generating taxonomy terms links xmlsitemap does not check if terms are published or not (This funcionnality is added by Taxonomy Term Status module).
I added this compatibility:
Replaced the original taxonomy query for a dinamic one to be able to add the published term condition when termstatus module is enabled.
So far IT ONLY WORKS WHEN EXECUTING DRUSH AND CRON... It doesn't work from the administration panel as for some reason it goes through a different logic.
Old query:
New query:
Have a nice day! And if someone finds out why this isn't working from de admin panel we'd be very thankful for sharing the info! ;)
Comment #3
adrien.felipe commentedComment #4
tbpixel commentedHey dansanjou,
I've created a patch that integrates Taxonomy Term Status support into XML Sitemap. The patch ensures that the termstatus module is enabled before making any changes, so users without termstatus installed will notice no difference.
Comment #5
avpadernoComment #6
dave reidI don't think this currently applies and is not the right area to fix. We want the rebuild to index everything regardless of status. I believe what should be patched is this portion of xmlsitemap_taxonomy_create_link(): https://git.drupalcode.org/project/xmlsitemap/-/blob/7.x-2.x/xmlsitemap_...