title: Open pdf file in new window from variable path name in GSP page
body: <p>I have a map named <code>file</code> I'm receiving from my controller which contains the path and description of a file stored in assets/myfiles/file.pdf the following format:</p>
  
  <pre><code>{"filepath": "file.pdf",
  "description": "something"}
  </code></pre>
  
  <p>How do I create a link to this pdf in a GSP page I'm rendering?</p>
  
  <pre><code>&lt;a href="${resource(dir: 'myfiles', file:' ${file[filename])' }" target="_blank"&gt;${file[description]}&lt;/a&gt;
  </code></pre>
  
  <p>I tried the above but it doesn't open the pdf but just another cloned tab of the app</p>