Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence export and hyperlinks

Lena Sargsyan
Contributor
January 31, 2024

Hi Dear Community,

 

I am the org admin in our Confluence instance. When I export any space to PDF I get all the links in the document directing to the instance. Please advise what to do for the following outcome:  when clicking on the hyperlink in the exported PDF file it turns to the respective page in the PDF instead of directing to the URL page.

 

Thank you.

Lena

4 answers

0 votes
Omar Adham April 30, 2025

The hyperlinks to sections within the same document will work if you only keep the last part of the url, starting with the #.

So instead of https://whatever.atlassian.net/whatever#Name-of-header

the link should just be #Name-of-header

and it will work in the PDF export by jumping to the hader.

 

Barbara Szczesniak
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.
May 7, 2025

Sorry, @Omar Adham, but your solution only works for links within the same Confluence page, which is actually not an issue. The issue is with links from one Confluence page to another. 

I haven't created a PDF in over a year, but I just tried, and this still seems to be the case. 

I found this Jira ticket, which is for links within a Confluence page, but added a comment on what I experience. Maybe if others vote for and post their experience someone will address the problem. https://jira.atlassian.com/browse/CONFCLOUD-76571 

0 votes
David Lee
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!
January 28, 2025

I have the same problem too -  when I click on a link in the exported PDF space doc, it opens the URL in my browser (instead of to another place/page in the doc)...

This is a blocker for my work and team - pls help...!

 

NOTE: This only happens in Confluence Cloud - in the old non-cloud version we used before, everything worked fine (i.e. clicking the links led to another place in the doc)...

Omar Adham April 30, 2025

The solution is in my reply, basically just keep the part of the link starting with #

David Lee
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!
April 30, 2025

Omar, Thanks for the information, but this does not solve my problem in practice, as I cannot go through and change all the links (approx. 1,000 pages when exported to PDF, with a couple of thousand links!) and especially not every time I export it!

I need to provide a new PDF to our customers every few weeks (with all recent updates).

0 votes
Barbara Szczesniak
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.
January 31, 2024

I just created a PDF of my space for the first time to test this. I see similar issues to @Lena Sargsyan including:

  1. Links to heading (anchor) on same page within Confluence seem to work fine in the PDF.
  2. Links to heading (anchor) on a different page within Confluence or just to a different page cause a Security Warning popup that the document is trying to connect to my Confluence site, rather than jumping to the location within the PDF.
  3. Where my Table of Contents macros on a page show up in the PDF (most do not), click a link works fine—probably because these also link to a location in the same page in Confluence.

On a separate note, I see that none of my custom emojis transfer to the PDF. Since I will be using Scroll Viewport to generate a web site of my output, rather than a PDF, I'm hoping those emojis transfer there.

Omar Adham April 30, 2025

The solution is in my reply, basically just keep the part of the link starting with #

Aditi K
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!
May 9, 2025

@Omar Adham that is not the solution for this problem.

0 votes
Nikola Perisic
Community Champion
January 31, 2024

Hi @Lena Sargsyan 

Interesting problem. I have tested this from side and everything seems to be working properly.

Here is the article where this issue has happened, where Jacob explained the solution:

https://community.atlassian.com/t5/Confluence-questions/Hyperlinks-not-working-in-Confluence/qaq-p/1807620

Nikola Perisic
Community Champion
January 31, 2024

Screenshot 2024-01-31 at 10.33.50.png

Export space in PDF

After clicking on the Figma link:

Screenshot 2024-01-31 at 10.34.41.png

Lena Sargsyan
Contributor
February 2, 2024

I may have wrongly named my question.

My question is: when I export to pdf a Space in Confluence then I open the pdf document and then I click on any page link it leads me to the URL of that confluence page, whereas it should have taken me to the respective page within the pdf. If I click on the link which is just the header of the next chapter in my document on the next page, why it takes me to the URL instead of taking to that page in pdf?

How to solve this? Please advise.

 

Thank you.

Lena

Like # people like this
Sanjeev Penupala
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!
December 26, 2024

I have the same issue, as well.

 

For example, when using the "Table of Contents" macro, the header links get converted to internal PDF links, while as if you try to manually use a header link anywhere else in your Confluence page, it doesn't get converted to an internal PDF link during export.

 

This should be fixed.

Like # people like this
Omar Adham April 30, 2025

The solution is in my reply, basically just keep the part of the link that starts with #

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events