---
title: "Discussion on \"Sprockets 4: `url(relative.css)` issue\" | Hashnode"
description: "Discussion on \"Sprockets 4: `url(relative.css)` issue\". Disclaimer: sprockets in general is phased out in the Rails community, still some people need the fix ... I needed a fix today.\nIssue: I have an old gem that reference an relative image in the CSS background-image: url(\"icon.png\")) which once compile..."
url: "https://hashnode.com/posts/sprockets-4-urlrelativecss-issue/65bcc274913d3612fd7f1c42"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Sprockets 4: \`url(relative.css)\` issue](https://blog.brennetot.com/sprockets-4-urlrelativecss-issue?utm_source=hashnode&utm_medium=feed)

Disclaimer: sprockets in general is phased out in the Rails community, still some people need the fix ... I needed a fix today. Issue: I have an old gem that reference an relative image in the CSS background-image: url("icon.png")) which once compile...

Feb 2, 2024 · 2 min read · blog.brennetot.com  
Updated Feb 28, 2024  
Read the article

-   [#sprockets](https://hashnode.com/tag/sprockets)
-   [#rails](https://hashnode.com/tag/rails)
-   [#assets](https://hashnode.com/tag/assets)

## Written by

[Thomas Brennetot](https://hashnode.com/@Damax)

@Damax · Tokyo, Japan

  
[View profile](https://hashnode.com/@Damax)

Rails excellence with innocence

10+ years most with Ruby on Rails and JavaScript frontend and some Go. My first language is C for 3 years in university.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
