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

This widget could not be displayed.

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
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

602 views 8 6
Join discussion

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