When linking to an attachment that is stored within a different page, the URL that is generated contains the version number of the current highest version. If there are made new versions of the file, the previously created link (absolute url) will still link to the old version.
Example of current behaviour, using the "Insert Link" screen:
If instead the link mechanism would use the relative url to the attachment, it wouldn't matter how many versions there are. It would always open the most recent one.
An intermediate workaround is to copy the relative url to the attachment from the Attachments page (right-click and "Copy Link Address"). This will always point to the most recent version.
Example of wanted behaviour:
There should never be absolute paths used for versions of attachments, as you will easily download an outdated version of it.
Is it possible to configure this somehow, or are we stuck with the workaround?
While it does look like it is pointing to a specific version that link is generated dynamically each time you load the page. If you look at the storage format it should look something like this ...
<ac:link> <ri:attachment ri:filename="Attachment.pdf"> <ri:page ri:content-title="Other Page"/> </ri:attachment> <ac:plain-text-link-body><![CDATA[Stuff]]></ac:plain-text-link-body> </ac:link>
As you can see the storage format doesn't point to a specific version. When the page renders it will create the url on the fly and point it to the latest version. If you update the attachment you should see the url change. If it is not changing then probably the link is not set up correctly in the storage format and is pointed directly to a specific URL like this ...
This would happen if you select "Web link" when you are creating the link. But if you use "Search" instead then it should be created correctly.
Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs