Open link in a new tab

Content

Expand project menu

Wiki: internal link to attachment that is not a media file

Hi,

if it’s possible to link to attachment that is added under wiki page except full url, f.e. Some text

Thanks

Message actions

Hi,

it is currently not possible to link attachments under a different name with the attachment syntax.

In case you (or someone else) wants to change that, the corresponding code can be found in the application_helper.rb file (line 801).

A possible workaround is to use regular links. Copy the attachments download link (like https://my-example-openproject.org/attachments/1234/important.pdf) and create a link to it with

"another name":https://my-example-openproject.org/attachments/1234/important.pdf

Beware: The link might break if you change your file/attachment host or move your openproject instance to another url (the attachment syntax wouldn’t break in that case).

cheers,
Philipp