Solution for "flexible" hyperlinks (absolute -> relative): Need different url for a) sub page and b) sub page within parent page


I have three documents

  • one parent page and
  • two included sub pages
    • sub page A
    • sub page B

sub page A has a hyperlink to (a headline within) sub page B.

This hyperlink should be "flexible" in the following sense:

  1. When I open sub page A and click the hyperlink it should go to to sub page B
  2. When I open the parent page (which has sub page A included) and click the same hyperlink now it should stay on the parent page and just jump to the right space of the included sub page B


  • version 1 works with [name of sub page B#name of headline]
  • version 2 works with [name of parent page#name of headline] or [#name of headline]

Is there some solution that can unite these two different URLs, perhaps a macro that can be included into the parent page and just filters out the first part of all hyperlinks?


1 answer

That is probably a little too far fetched. So let's consider this one closed.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

370 views 2 13
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