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

Deborah Dudley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2012

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

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2012

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.

Deborah Dudley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 27, 2012

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
TAGS
AUG Leaders

Atlassian Community Events