The compressed CSS and JS of our sites is stored on S3 and advagg is helping us to replace relative paths in CSS with absolute ones.

For one of our sub sites, we use a base path '/es/' which is accidentally matched with 'sites/all/modules/...', so all paths become invalid as it drops 'sites'. Because of the 'es/' within 'sites/', it assumes base_path is present. Below is patch with an attempted fix which seems to work for us. But it needs wider testing as I do not really understand the real purpose why it's there in the first place.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phox4ever created an issue. See original summary.

phma’s picture

phma’s picture

Issue summary: View changes
phma’s picture

phma’s picture

Issue summary: View changes

I realised that my patch was breaking empty base_paths. I came up with an even simpler fix.

mikeytown2’s picture

Status: Active » Needs review