Score:1

Advagg with S3fs relative url() references inside of CSS files - broken image URL

gs flag

Background Images Paths are Changed when CSS Aggregation is On

s3fs module with AdvAgg to store CSS/JS aggregates on the S3 stream wrapper

Without Aggregation (Works well). fetch from domain base url.

background-image: url(/themes/THEME/images/test.jpg);

Src of the image in CSS, which is pointing to the CNAME for S3

With Aggregation isn't working. Because, my CNAME is different from my DOMAIN name.

background-image: url(http://CNAME_DOMAIN/themes/THEME/images/test.jpg);

I disabled it all OBSCURE options(admin/config/development/performance/advagg). But No luck.

Everytime, the CSS file content url() fetching from the CNAME url.

Score:0
us flag

I found the same issue and it was the absolute path that broke things https://www.drupal.org/project/s3fs/issues/3241554

Had a very similar structure:

background-image: url(/themes/THEME/images/test.jpg);

Convert this to:

background-image: url(/../images/test.jpg);

(Or whatever relative path that makes sense) and it should work (thanks to @cmlara for the pointer!)

Thirsty Six avatar
gs flag
Still, i have same issue.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.