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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,991
Community Members
 
Community Events
176
Community Groups

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.

 

1 answer

0 votes
Brant Schroeder Community Leader Oct 05, 2021

@Stefan Seefeld Welcome to the Atlassian Community.  

There is not a good way to create relative links.  Navigation Macros kind of work this way like the table of content macro.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events