How to use bookmark with anchor to link to specific section of confluence page?

Debbie Buswell July 26, 2015

We are interested in using anchors in Confluence with bookmark to link to a specific section of a Confluence page.  So far, the syntax of "anchor\bookmark" or "anchor:bookmark" has produced a syntax error?

What is the proper way to set up an anchor with a bookmark?

 

2 answers

2 votes
Robert Reiner _smartics_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2015

In the Advanced tab of the "Edit link" dialog use the hashmark and then the name of the section.

Eg. if the section has a heading "Assets" use "#Assets". If you refer to another page, add the page title in front of the hashmark.

For details please refer to https://confluence.atlassian.com/display/CONF57/Working+with+Links, Link to an anchor on a page: spacekey:page name#anchor name

For instance: The key of the space you want to link to is "DOC", the page title is "My Page" and the heading of the section is "Important Information". The link in the advanced tap input field would be:

DOC:My Page#Important Information

Note that you use the heading as is, not the generated ID on the HTML element.

Here is more information on anchors:
https://confluence.atlassian.com/display/CONF57/Working+with+Anchors

Imagine Software Inc. February 12, 2020

Perfect! Thanks.

0 votes
Debbie Buswell July 28, 2015

Robert,

Thank you for the assistance. This works at the space level very well.

We are also trying to anchor to a specific page in a space and then to a specific section of that page (with a heading)?  Is that possible?

Hierarchy is:

1–Space

2–Page

3–Heading (not at top of page, but within body of page)

 

Robert Reiner _smartics_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2015

I don't know if I understand your question correctly. So I tried to add an example to explain the linking to a section in another space. Hope this helps.

Debbie Buswell August 3, 2015

Robert, I now have the link working. Thank you so much for your help. Debbie

Robert Reiner _smartics_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2015

Thank you for your feedback!

Diwash Bajracharya July 14, 2017

@Debbie Buswell I am trying to do something similar ie  link from an external website to a particular section of a confluence page (particular question in a FAQ confluence page).

Could you tell me what you did? I tried going over the articles @Robert Reiner _smartics_ mentioned and it says to use this format:

http://myconfluence.com/display/spacekey/pagename#pagename-anchorname

But it did not work.

Robert Reiner _smartics_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 14, 2017

Maybe your page or anchor name contains special characters or a space? In case of a space you need to remove them.

The easiest thing would be to inspect the heading you would like to point to in your browser. Check the id attribute of the heading.

<h2 id="BreadcrumbMacro-TemplateforLabel" ...>Template for Label</h2>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events