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.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | advagg-fix-partial-base_path-matching.patch | 570 bytes | phma |
|
Comments
Comment #2
phma CreditAttribution: phma commentedComment #3
phma CreditAttribution: phma commentedComment #4
phma CreditAttribution: phma commentedComment #5
phma CreditAttribution: phma commentedI realised that my patch was breaking empty base_paths. I came up with an even simpler fix.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commented