Michael
Michael

Reputation: 33297

Prevent Grails Asset-Pipeline from changing File Name?

I use Grails 2.4.4 and the asset-pipeline plugin. One of my assets is a PDF file. I want that the name someName.pdf while remain when a user downloads this file. In my GSP I use it as:

<a href="${assetPath(src: 'someName.pdf', absolute:true)}" target="_blank">Download PDF</a> 

When I run in production the downloaded file name is:

someName-a9070ffc23b73b681ba027cbbe55b650.pdf

How can I prevent the asset-pipeline plugin from changing the name of pdf files in production mode?

Upvotes: 1

Views: 428

Answers (1)

Aasiz
Aasiz

Reputation: 659

Ref https://github.com/bertramdev/grails-asset-pipeline/issues/229

simply place the pdf file in the web-app folder instead of assets folder.

Upvotes: 2

Related Questions