Neeraj Bhatt
Neeraj Bhatt

Reputation: 145

I have an issue in using ${resource(dir:' dir', file:'file.png')} in grails 2.0.0

I use

 <img src="${resource(dir:'images', file:'logo.gif')}" width="249" height="31" /> 

and i got

 <img alt="Grails" src="/amwccms/static/cXmUZIAv28XIiNgkRiz4RRl21TsGZ5HoGpZw1UITNyV.png"> 

instead of

<img src="/amwccms/images/logo.png">

Upvotes: 0

Views: 331

Answers (1)

Dror Bereznitsky
Dror Bereznitsky

Reputation: 20386

The hash used as the resource file name indicates that you may be using the Grails cached resources plugin. This plugin provides a "hash and cache" mapper for the resources framework, automatically creating safe unique filenames for your resources and setting them to eternally cache in the browser.

Upvotes: 1

Related Questions