Forums

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

Insert Links and Anchors

Joanna de la Cruz February 19, 2018

I am also unable to get Anchors to work on my pages. I followed the suggestion "just delete the current UserGroup anchor, and remake it at the end of the previous section as a new line above the heading. It should still link to the heading as expected." That did not work. I have no special characters in my headings, I've followed their instructions, still the anchor jumps to the top of the page. Using Atlassian Confluence 6.3.2. Does anyone have a real fix yet?

 

1 answer

0 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.
February 20, 2018

I do not know where your reference "just delete ..." points to.  So maybe I do not understand the context of your question correctly. But whenever I had problems with anchors it has been due to the fact that the name of the anchor is different whether your link is outside or inside of Confluence:

Outside:

#PageName-AnchorName

Inside (using the link dialog - the translation to the above syntax is made by Confluence):

spacekey:pagename#anchorname

e.g.

DOCS:My page#important information

Hope this helps!

Here is another answer concerned with anchors (where I copied the examples from): community.atlassian.com/t5/Confluence-questions/Using-Anchors/qaq-p/330511 

Joanna de la Cruz February 23, 2018

Found the reference on another string, I thought I was adding to that string but apparently not. Anyway, figured out the problem: had to make anchor name without spaces or underscore. Instructions were a little wrong (at lease for me).

Thank you.

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.
February 23, 2018

Thank you for your feedback!

BTW: The anchor may contain spaces:

The Anchor Macro:

anchor-macro.png 

The Link (in Advanced Mode): Do not encode the Anchor name, preserve the space as is.

link.png

The rendered HTML

<a href="#MyPage-MyAnchor">link</a>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events