Quantcast

Disable image url rewrite in css in resource plugin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Disable image url rewrite in css in resource plugin

panwaskard
We've recently upgraded to 2.0.3 and have seen an issue only on production where images referenced relatively in css have had there url updated to the following:

<base_url>/static/css/assets/resource:/i/spr-dc.png

But this does not work.

1) How can I disable this so that my image references work on production

2) I know the resource plugin is great and that we should be utilising its features, but I would not expect to see features such as this show up only in production as this means we do not see issues in test.  Have we done something wrong here? We are only using the resource plugin for ad-hoc resources references in the layout.  Or is this a bug?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Disable image url rewrite in css in resource plugin

Marc Palmer Local

On 14 May 2012, at 13:06, panwaskard wrote:

> We've recently upgraded to 2.0.3 and have seen an issue only on production
> where images referenced relatively in css have had there url updated to the
> following:
>
> <base_url>/static/css/assets/resource:/i/spr-dc.png
>
> But this does not work.
>
> 1) How can I disable this so that my image references work on production
>

Hi,

You'll need to exclude CSS from processing if you want that to go away. Something in Grails 2.0.3 is apparently affecting the the image rewriting, though I've not seen this happen myself yet.

> 2) I know the resource plugin is great and that we should be utilising its
> features, but I would not expect to see features such as this show up only
> in production as this means we do not see issues in test.  Have we done
> something wrong here? We are only using the resource plugin for ad-hoc
> resources references in the layout.  Or is this a bug?


I'm not sure, looks like a bug somewhere. Did you have this working previously with an older build of Grails?

Thanks
Marc
~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java/UX)

I offer commercial support for Grails plugins from as low as $50/mo.
For details see: http://grailsrocks.com

Blog: http://www.anyware.co.uk | Resumé: http://www.anyware.co.uk/marc
Contributor @ http://grails.org |  Founder @ http://noticelocal.com
Developer @ http://weceem.org | Member @ http://spottymushroom.com
Twitter: http://twitter.com/wangjammer5 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Disable image url rewrite in css in resource plugin

panwaskard
This post was updated on .
Our last release was using grails 2.0.1 and we did not see this.  Only now that we have upgraded to 2.0.3 and only when war is built for production.  Do you if there is a Jira for this otherwise I'll log one.

So to switch this off do I just need to set the following:
grails.resources.rewrite.css = false

Thanks
Loading...