I would like to use an iframe to have an alternative pdf preview:
- If I hardcode the src the pdf opens in the iframe.
<iframe src="${config.getDomainName()}/download/attachments/${content.getIdAsString()}/${paramPDFattachmentName}" > alternative text </iframe>
- If I use the variable construction as shown above I get a dialog box to select between "save" and "open with" for the pdf in Firefox. The pdf is opened externally in the reader. If I use Chrome the pdf file is downloaded.
Is there any way to make it open in the iframe?
The Adaptavist inline macro has the same behavior but you have to use the complete url. The html macro works, but the syntax is more complex for "normal" users and you also need the complete url.