In Confluence 4, I can type [ and it lets me search for pages in my Confluence to link to, which is great. But how then do I link to headings on that page? So far, the only way I have found is to manually copy the entire URL and link to that. I was hoping the fancy search function could root out headings within a page too.
This can be done by going through the 'Advanced' tab in the 'Insert Link' dialog as described in this page:
Best practice to use the anchor macro. This creates an anchor inside the page, which can be hyperlinked as documented at https://confluence.atlassian.com/conf68/anchors-947170225.html
I referred to this as best practise as you will have to specify a key for your anchor which will not break if you adopt the heading in the future - links will still work.
Each heading item has an id attribute that you can append to the url of the page to link directly to a heading.
However you don't need to use the page url, you can do it with the page name and wiki-markup, eg:
[My Page Name#MyHeadingId]
Thanks for that. It is indeed a workaround! I read it before posting. It requires me editing pages. Not ideal in my situation though. I'd prefer if the inline comment wrapped the heading, not substituted it. As it breaks existing links and doesn't allow linking into headings.
Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events