Link to section heading within same page

Stephen Kairys
Contributor
July 16, 2024

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

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.

 

 

2 answers

1 vote
Hans Polder _Devoteam_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2024

@Stephen Kairys ,

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

 

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

Stephen Kairys
Contributor
July 17, 2024

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.

 

 

 

 

Like Hans Polder _Devoteam_ likes this
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.
July 18, 2024

@Stephen Kairys 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.

Like Stephen Kairys likes this
Stephen Kairys
Contributor
July 18, 2024

@Barbara Szczesniak 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 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.

 

 

 

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.
July 18, 2024

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

Stephen Kairys
Contributor
July 18, 2024

Multiple user cases? Such as?

1 vote
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2024

@Stephen Kairys 

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

Suggest an answer

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

Atlassian Community Events