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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,782 views 26 10
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