Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Anchor doesn't work...

Lin, Yuying January 22, 2020

Hi I tried to use anchor to link to a specific section of the same page, but it doesn't work at all....

 

I named the anchor like "section1" and for the link I typed "#section1"

I have tried several names without any luck. 

Hopefully there will be some answers here ;(

Thank you in advance.

1 answer

0 votes
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.
January 22, 2020

Here is some great documentation on anchors https://confluence.atlassian.com/doc/anchors-139442.html 

When you follow the link that should take you to the anchor, what does the URL look like? It should look similar to:

http://baserURL/display/spacekey/Page+Name#PageName-AnchorName

If you're not using the Anchor macro and are manually linking to the heading, replace AnchorName with HeadingName in the above example for the same effect. You can also inspect the heading element with Chrome's dev tools feature or Firebug and look at the heading's id tag for the PageName-HeadingName text. You can add it to the page's normal URL after adding a # at the end and it should link to the anchor.

Side note: If there isn't enough content below your anchor to fill a full page in your browser window, the anchor will place your page view at the end of the page instead of placing the anchor at the top of the window. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events