Link to section heading within same page
Asked by Stephen Kairys:

Hi,

Is there a way to navigate to a particular section in a page e.g.,

Click **here** for info on updating vendors, where "here" is a link to the section heading "Update Vendors".

![Configure link within same page.PNG](/t5/image/serverpage/image-id/336006i40DED5FFF756F13A/image-size/large?v=v2&px=999 "Configure link within same page.PNG")

I know I can manually add an anchor link right before the section title, but would love to be able to avoid that effort.

Thanks.


Answers:
author: Brant Schroeder
body: [@Stephen Kairys](/t5/user/viewprofilepage/user-id/544726)

The only way to do that currently is as you described with an anchor link.


author: Hans Polder
body: [@Stephen Kairys](/t5/user/viewprofilepage/user-id/544726) ,

Just curious: You mentioned that currently you add an 'anchor link' to the page. From that phrasing, I'm understanding that you use the 'Anchor' macro. Am I correct there?

![Screenshot 2024-07-17 070911.png](https://community.atlassian.com/t5/image/serverpage/image-id/336009iA982FD4A9E1240D6/image-size/large?v=v2&px=999 "Screenshot 2024-07-17 070911.png")

Since you're also referring to 'the section title', I'm assuming that you also might have some 'headings' in use. If that's the case, you can grab an anchor link from the View-version of the page, when hovering over the heading you want to 'anchor' to:

![Screenshot 2024-07-17 071045.png](https://community.atlassian.com/t5/image/serverpage/image-id/336010iF21F27CCAE672205/image-size/large?v=v2&px=999 "Screenshot 2024-07-17 071045.png")

comments: author: Stephen Kairys
body: Hans,

Yes, I was talking about section headers. I'd forgotten you could create a link such as

**<https://mydocs.atlassian.net/wiki/spaces/UG/pages/1223524355/Test-Article#Create-New-Vendor>**

In fact, I was able to use only the anchor name **#Create-New-Vendor** when configuring the link, but not sure that's best practice.

However, this method is flawed. If for some reason I change the section name from

**Create New Vendor**

to

**Add Vendor**

the link breaks.

Therefore, I'll probably continue using my own anchors.

Thanks for your time and help.


author: Barbara Szczesniak
body: [@Stephen Kairys](/t5/user/viewprofilepage/user-id/544726) If you are linking to an anchor on the same page, you can just use #\<anchorname\>. If you want to link to the anchor on another page, you append the #\<anchorname\> to the end.

And you're right, if you use anchors, you don't need to worry about breaking your links by changing the text of the heading.


author: Stephen Kairys
body: [@Barbara Szczesniak](/t5/user/viewprofilepage/user-id/5187859) Question - If I click an anchor link within the same doc, I'd love to be able to hit the BACK button and return to where I was sitting **within the same page**. But that does not seem to be the case. - it might take me to somewhere else entirely.

Would you know of a workaround?

FWIW, [Document360's](https://document360.com/knowledgebase-site/) CMS handles this situation very well.

Click anchor link from Point A in the page, it takes you to the link.

Click BACK button, you are seamlessly returned to Point A.

Thanks.


author: Barbara Szczesniak
body: I do not think Confluence has that level of sophistication, since it is designed for multiple use cases.


author: Stephen Kairys
body: Multiple user cases? Such as?


Tags: anchor

cloud

confluence-cloud

link

section