Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

cross-page links including anchors

I'm trying to link from a page into another page (using an anchor), following the documentation , but I'm encountering a couple of problems:

1. case:

My target page contains a TOC, so I'm copying the link to the target section, then, in the "insert link" popup, in the "advanced" tab, paste that as URL. (Saving this works fine.) As the URL is absolute, but I do want an "intra-space" link, I'm editing the URL to remove the the prefix ("http://confluence/display/~sseefeld/") to only follow the schema "<page name>#<anchor-name>"

This no longer works, as it appears as if Confluence would automatically prefix the link with "http://", so I get an invalid link.


2. case:

Rather than using an existing anchor from my target page, I'm adding a new anchor to my target page using the anchor macro. Contrary to the advice given in the above referenced documentation, the real anchor name isn't the name I gave when using the macro, but is a long name including the page name.

Trying to use a link following the <page-name>#<anchor-name> also yields an invalid link as it appears as if Confluence injects a '/' between page-name and anchor-name.


Any advice on how to proceed ? (I really do need relative intra-space links, as both pages are part of a "document" (Using the Scroll Document plugin), and I want the link to be handled correctly when exporting the document to PDF.


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

424 views 16 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you