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:
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.

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 yesterday in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

101 views 1 14
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