How to autogenerate the link to an anchor

The article https://confluence.atlassian.com/doc/anchors-139442.html says that I need to create an anchor and then do some crazy text maipulation to actually have a link.

Notes about the full URL:

  • The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
  • There is a single dash (hyphen) between the concatenated page name and the anchor name.
  • The anchor name in the full URL is concatenated into a single word, with all spaces removed.
  • The anchor name is case sensitive.

 

Is there no easy way? Such as right clicking somewhere and get the link to that.

 

I am currently looking into the element and finding the ID and using that to make the URL. But this feels like a stupid thing to do.

 

1 answer

This widget could not be displayed.

Even better would be improving the create-link dialog to let you pick a page, then choose to show either:

  • all the headings on that page to link to, or
  • all the anchors on that page to link to

...then the system would build the URL internally so we don't have to mess with it.  smile

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

603 views 8 6
Join discussion

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