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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

755 views 23 12
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