{"action":"opened","issue":{"url":"https://api.github.com/repos/Compass/compass/issues/2036","labels_url":"https://api.github.com/repos/Compass/compass/issues/2036/labels{/name}","comments_url":"https://api.github.com/repos/Compass/compass/issues/2036/comments","events_url":"https://api.github.com/repos/Compass/compass/issues/2036/events","html_url":"https://github.com/Compass/compass/issues/2036","id":122793167,"number":2036,"title":"`@include all-X-sprites` references non-relative url for sprite image ","user":{"login":"nani83","id":12486486,"avatar_url":"https://avatars.githubusercontent.com/u/12486486?v=3","gravatar_id":"","url":"https://api.github.com/users/nani83","html_url":"https://github.com/nani83","followers_url":"https://api.github.com/users/nani83/followers","following_url":"https://api.github.com/users/nani83/following{/other_user}","gists_url":"https://api.github.com/users/nani83/gists{/gist_id}","starred_url":"https://api.github.com/users/nani83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nani83/subscriptions","organizations_url":"https://api.github.com/users/nani83/orgs","repos_url":"https://api.github.com/users/nani83/repos","events_url":"https://api.github.com/users/nani83/events{/privacy}","received_events_url":"https://api.github.com/users/nani83/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T18:21:07Z","updated_at":"2015-12-17T18:21:07Z","closed_at":null,"body":"This might seem like a dup of 834, but none of the fixes suggested online seem to fix the issue\r\n\r\nI have a ruby on rails(3.2) app. The folder structure is \r\n<pre><code>\r\napp\r\n├── assets\r\n     ├── stylesheets\r\n     ├── javascripts\r\n     └── images\r\n           └── banner.png\r\n├── config\r\n       └── compass.rb\r\n</code></pre>\r\n\r\nImages are in banner directory and sprite is being created under /public/assets as expected and the style in the css file  points to /assets/bannerSprite.png\r\n<pre><code>\r\n├── public\r\n       ├── assets\r\n               ├── banner-sbed445a13a.png\r\n               └── css\r\n                    └── banner.css\r\n</code></pre>\r\n\r\nHowever the styles generated is an absolute path. My project deploys on an external server and I need the css to refer relatively to the sprite\r\n\r\nCurrent code\r\n<pre>\r\n.banner-all{background-image:url(/assets/banner-sbed445a13a.png);background-repeat:no-repeat}\r\n</pre>\r\n\r\nExpected code\r\n<pre>\r\n.banner-all{background-image:url(../banner-sbed445a13a.png);background-repeat:no-repeat}\r\n</pre>\r\n\r\nAs per the suggestion in 834, I created a config file /config/compass.rb and added below line\r\n<pre>\r\nrelative_assets = true\r\n</pre>\r\n\r\nhowever the style created is still absolute path. Appreciate your inputs on this."}}