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.
I have a CSS file in mydomain.com/drupal/sites/all/themes/Mytheme/assets/css/style.css and images in mydomain.com/drupal/sites/all/themes/Mytheme/assets/images
In the style.css I have used the below code.
.class{
background-image: url(../images/star.png);
}
The Background image is working correctly when i disable the Advanced CSS/JS Aggregation module.
But when i enable the Advanced CSS/JS Aggregation the background image path is showing wrong path.
.class{
background-image: url(drupal/assets/images/star.png);
}
The Theme path is missing here.
Correct path should be
.class{
background-image: url(drupal/sites/all/themes/Mytheme/assets/images/star.png);
}
Comments
Comment #2
wispraveen CreditAttribution: wispraveen commentedComment #3
mikeytown2 CreditAttribution: mikeytown2 commentedCan you try the latest dev?
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedI believe this is fixed with the latest dev can you please test?
Comment #5
wispraveen CreditAttribution: wispraveen commentedIts working thanks a lot.
Comment #6
wispraveen CreditAttribution: wispraveen commentedComment #7
mikeytown2 CreditAttribution: mikeytown2 commentedClosing due to lack of feedback.
Comment #8
apaderno