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

wispraveen created an issue. See original summary.

wispraveen’s picture

Issue summary: View changes
mikeytown2’s picture

Can you try the latest dev?

mikeytown2’s picture

Status: Active » Postponed (maintainer needs more info)

I believe this is fixed with the latest dev can you please test?

wispraveen’s picture

Its working thanks a lot.

wispraveen’s picture

mikeytown2’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Closing due to lack of feedback.

apaderno’s picture

Issue tags: -background image