Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be useful to integrate with XML sitemap - if a page is published, but there is a redirect set up from that URL, then it probably shouldn't be included in the sitemap.
I think it should be possible to achieve this with hook_xmlsitemap_link_alter
Comments
Comment #2
james.williams CreditAttribution: james.williams at ComputerMinds commentedI'm yet to try it out, but it looks like this functionality was already added to the 7.x-2.x branch of the xmlsitemap project!