Link to anchor on another page in Confluence

Janet Shuey December 11, 2023

This is advice on your website that I tried and it doesn't work:

To link to an Anchor macro on another page:

  1. Copy the URL of the page whose anchor you want to link.

  2. Make note of the name of the anchor to which you want to link. The name is displayed on the anchor when editing the page.

  3. Go to the page where you want to add the link and edit the page.

  4. Highlight the text to be used as the link.

  5. Select the link tool .

  6. Paste the URL to the copied page in the link field followed by a # symbol and the anchor name.
    Example
    page name = Project notes

    Anchor name = notes from today
    Link = sitename.domain/wiki/Project+notes#notes-from-today

MY STEPS:

I created anchor on Page 1 and copied URL of this page

Went to Page 2 and typed link text, highlighted it, used Link tool and pasted URL#Anchor

Published Page 2

Tested the link, which returns me to Page 1 but AT THE TOP OF THE PAGE!

So, what am I doing wrong?

2 answers

1 vote
Barbara Szczesniak
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.
December 12, 2023

@Janet Shuey My approach to these links is slightly different, but seems to work to open the page to the location of the link. 

  1. Open the page you want to link to in Edit mode.
  2. Insert the Anchor (if necessary) and then copy the name of the Anchor. 
  3. Either revert to last version or publish the page with the new anchor. This makes the page one you have accessed recently, so it appears in the top of the list in the link tool on the other page.
  4. Do steps 3-5 of the Atlassian instructions you have posted in your question.
  5. Instead of pasting the url, select the page you want to link to in the list.
  6. Once the URL box is filled by this selection, go to the end of the url, insert #, and paste the name of the anchor.

As I said, this works for me. If it also works for you, please let us know. Maybe we can post it as a workaround on the ticket @Andy Gladstone mentioned.

Janet Shuey December 12, 2023

I did as you suggested. On your step #5 I used the Recently Viewed list to select the page to link to.Atlassian1.png

 

Then in the field with the URL I typed the # and PASTED the name of the anchor. 

Atlassian2.png

It still didn't work. Am I missing something?

Barbara Szczesniak
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.
December 12, 2023

@Janet Shuey The instructions you linked to and Andy's Jira link are both for Cloud, but your Insert Link box looks like you're not using the Cloud version.

Are you on Server or Data Center? You might start with this page: https://confluence.atlassian.com/doc/anchors-139442.html 

This is for version 8.7, so you might need to select a different version at the top of the page. 

Like Janet Shuey likes this
Janet Shuey December 12, 2023

How do I know which version I'm using?

Barbara Szczesniak
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.
December 13, 2023

I use Cloud, so I do not know how you check this. If you know who your Site Admin is, they can tell you.

Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2023
1 vote
Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 11, 2023

@Janet Shuey you are experiencing behavior that is a known issue and big in Confluence Cloud. It was reported on https://jira.atlassian.com/browse/CONFCLOUD-67771 and continues to be an issue today. I have not been able to find a workaround for this to date.

Sorry that the answer is - there really is no solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events