Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add link target with Confluence page editor when Anchor macro is missing?

Rob Schlüter
Contributor
February 15, 2019

I want to create a link target in a Confluence page to link directly to a header in the page. The documentation describes that there is Anchor macro to define such a target.

When editing the page this macro does not exist. I tried 2 ways to get it:

  • typing / (slash) followed by anchor
  • open the list of macro's with Insert - View more

Without the Anchor macro how can I define a link target in a page?

3 answers

2 votes
Sean Manseau April 24, 2019

No solution to offer, but I too am dealing with the missing Anchor macro. 

0 votes
Jared Brenner
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.
February 15, 2019

Hi Rob,

That's pretty weird that the Anchor macro isn't available.  If that header is formatted as a Heading you can always just add a hyperlink formatted as follows:

URL/#PageTitleNoSpaces-HeadingNameNoSpaces

So the anchor URL for a page titled "Team Landing Page" with text "Team Announcements" formatted as a Heading would appear as follows:

URL/#TeamLandingPage-TeamAnnouncements

A user following that link would see their page jump to the top of the Team Announcements Heading.

Good luck!

0 votes
Zak Laughton
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2019

Hi Rob!


I'm not familiar with the slash key or "View more" menus related to macros, but there are other ways to find macros. Let us know if you're able to find the macro with either of these methods:

  • Type an opening curly brace { and then type "anchor".
  • Click the "Insert more content" dropdown in the editor, click Other macros, then search "anchor" in the "Select macro" dialog box.
    Screen Shot 2019-02-15 at 10.19.40 AM.png

I hope this helps!
–Zak

Rob Schlüter
Contributor
February 18, 2019

That does not work.

Can it be caused by the new page editor, I remember choosing it when creating the page? But I did not understand it would change the available macros.

edit: Just saw this comment that the anchor macro is missing from the new editor.

The "Insert more content" is not present, but I see this:

confluence_slash_menu.png

It contains the option ... View more which show the list of macros. But the "anchor" macro is not included there.

Entering { followed by "anchor" puts that text in the document.

I will recreate a page with the "normal" editor to see if that solves the problem.

Like Zak Laughton likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events