After HTML export, link to specific page in pdf attachment is broken

I have built links to specific pages of attached pdf documents. When I export the space to HTML, and then open the exported HTML file without internet access, links into individual pages within the attached document are broken because it's trying to connect to the internet to locate the file and the corresponding page. It's looking for a URL starting with "https://" (that's the format I used in the Insert Link/Advanced function in Confluence) that indicates the location of the pdf and the page to link to (#page=x).

I understand that during the export process, this happens (quoting Atlassian here)...

>>Page attachments are placed in individual folders with names in the following format:
...\download\attachments\xxxxxx
where '
xxxxxx is the page ID of the page containing the attachments.<<

Does anyone know how I can get the HTML file to look for the pdf that now exists in a folder named the page ID and has a new name automatically assigned to it during the export?

1 answer

So while creating the links, instead of using the https links, you should have linked to attachments directly. Check this page.

https://confluence.atlassian.com/display/DOC/Linking+to+Attachments

And I guess in that case, when the export is done, it should work. I haven't checked this myself.

I tried linking directly to the attachment but I don't see a way to specify a direct link into a section (page) within the attachment. In other words, where you indicate "#page=x" in the https link, where would that be specified when linking to the attachment?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,189 views 2 13
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you