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.
My site is in http://mysite.com/mysite when I'm going to http://mysite.com/mysite/sitemap.xml i got this error in google chrome console:
http://mysite.com/misc/arrow-desc.png Failed to load resource: the server responded with a status of 404 (Not found)
This happens because the url in css rule is absolute:
table.tablesorter thead tr .headerSortUp {
background: url(/misc/arrow-asc.png) no-repeat center right;
}
We need to fix them preprocessing the content of this following a similar way that issue https://www.drupal.org/node/2736721, that is, using a comment for replace later.
This fix cdn problems and improve page load and browser render.
I attach the patch.
Comment | File | Size | Author |
---|---|---|---|
xmlsitemap-fix-url-image-error-in-drupal-directories-sites.patch | 1.82 KB | jansete | |
Comments
Comment #2
Chris Matthews CreditAttribution: Chris Matthews commentedThe 2 year old patch to xmlsitemap.pages.inc and xmlsitemap.xsl applied cleanly to the latest xmlsitemap 7.x-2.x-dev, and if still applicable needs review.
warning: 1 line adds whitespace errors.