Forums

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

Trying to use an anchor so I can steer a user to a specific spot in my documentation pages

Bill OLeary
Contributor
February 18, 2021

I wanted to steer a user directly to a spot in my documentation

I added the anchor macro with the name latest_multi_var_multi_list

 

confluence_anchor_screenshot.png

It seems pretty difficult to then create the URL for the anchor I inserted  

I was hoping when I opened the doc as a user I would somehow be able to right click on that spot and copy the URL, but It turns out I have to know the URL of the page-name and know the anchor name and glue them together manually to create the URL ?

To do this I need to have the document open for editing so I can copy the anchor name...

Am I missing something here?

1 answer

0 votes
Fabienne Gerhard
Community Champion
February 18, 2021

Hi @Bill OLeary 

for setting the anchor please read the instructions written here

It depends on where you are linking from:

Anchor locationLink syntax for anchorExamples - you are right when you link from another page you have to insert page name first than anchor name in advanced field - in your example:
your page name#latest_multi_var_multi_list

Same page#anchor name

#bottom

#important information

Page in same spacepage name#anchor name

My page#bottom

My page#important information

Page in different spacespacekey:page name#anchor name

CONFCLOUD:My page#bottom

CONFCLOUD:My page#important information

Bill OLeary
Contributor
February 18, 2021

Fabienne, Thanks for the answer...

I think I wasn't clear enough, I am wanting to direct a non-confluence customer to this anchor, so it has to be the full URL of the myconfluence/page/anchor and that seems quite a chore to get right...

I'm always afraid that magic PAGE# will change on me too :)

I was hoping when I added the anchor I'd be able to somehow see it when browsing the myconfluence/page, right click on it and pick up the link to the actual URL

Fabienne Gerhard
Community Champion
February 19, 2021

Oh ok - but this can work too! Create the anchor link insert the somewhere (best would be on your personal space) - check out if it works by clicking - and copy it! 

There you can find out the idea behind how the links in browser is created! I remember that that there is repetition of page name in link....

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events