- 🇮🇳India shabana.navas
Adding an updated patch which passes the sitemap as an argument as well for context.
We ran into a situation in which we needed to generate a different URL than was created by the Url::fromUri call in XmlSitemapGenerator::generateChunk() on line 315. I noticed that immediately above it is a TODO concerning the creation of a hook, hook_xmlsitemap_base_url_alter, to alter the Url.
The attached patch includes the creation of a hook to modify the Url object before the string is generated.
No remaining tasks
hook_xmlsitemap_link_url_alter is added - checkout the xmlsitemap.api.php file for information.
Needs review
1.0
xmlsitemap.module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Adding an updated patch which passes the sitemap as an argument as well for context.