Confluence 4.1 has reached end of life
Check out the [latest version] of the documentation
The Anchor macro allows you to link to specific parts of a page. Anchor links can be especially useful when navigating between sections of a long document or when you want to link to a segment of a page and not to the page as a whole.
Anchors are invisible to the reader when the page is rendered.
There are two steps to using an anchor:
- Create the anchor for the content.
- Create the link to the anchor.
On this page:
Creating an Anchor
You use the Anchor macro to create an anchor for content that you want to be able to link to.
To add the Anchor macro to a page:
Speeding up macro entry with autocomplete: To edit an existing macro: Click the macro placeholder and choose Edit. This will display the parameters of the macro in the Macro Browser.
Parameters
Parameters are options that you can set to control the content or format of the macro output.
Parameter | Default | Description |
|---|---|---|
Anchor Name | None; name must be supplied | This is the value for |
You can link to an anchor or heading that is on the same page, on another page in the same space, or on a page in another space of the same Confluence site. To link to an anchor or heading: Click Advanced and enter the anchor name (or heading) into the Link box, using the following syntax: Anchor or heading location Link syntax for anchor Link syntax for heading Same page Different page Page in another spaceLinking to an Anchor or Heading
#anchorname#headingnamepagename#anchornamepagename#headingnamespacekey:pagename#anchornamespacekey:pagename#headingname
For more information about link syntax, see Confluence Wiki Markup.headingname is case-sensitive and must be entered without spacesanchorname is case-sensitive, and pagename must be entered with spaces as in the title.
Notes
- If you are adding an anchor to the site welcome message, it can only be linked to from another page. Internal-only links will not render.
- Page titles and links to other spaces can be combined with anchors and attachments, but you can't use attachments and anchors in the same link.
Related Topics
Take me back to the Confluence User's Guide.
