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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jansete created an issue. See original summary.

Chris Matthews’s picture

Status: Needs review » Needs work
Issue tags: +trim whitespace

The 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.

Checking patch xmlsitemap.pages.inc...
Hunk #1 succeeded at 150 (offset 2 lines).
Hunk #2 succeeded at 159 (offset 2 lines).
Checking patch xsl/xmlsitemap.xsl...
Hunk #1 succeeded at 37 (offset 1 line).
Applied patch xmlsitemap.pages.inc cleanly.
Applied patch xsl/xmlsitemap.xsl cleanly.

warning: 1 line adds whitespace errors.