Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,138
Community Members
 
Community Events
165
Community Groups

Anchors not working to link to words on the page, how can I link to a specific question number/word

I have tried anchors the way defined in your help guide but they are not working. 

I need the ability to provide a hyperlink to a specific FAQ #

I built an FAQ page and I can successfully link to tab pages - but when I use anchors to link to questions on those tabbed pages or to children pages linked to the parent page I cannot. I am using include page links for question categories which go to child pages, and I have also tried using expand variables on the parent page.

I have tried these syntaxes with no luck:

  1. tab page on FAQ page (parent) named Onboarding
    question #14, anchor = {videos}
    link = https://confluence.prod.aws.jpmchase.net/confluence/display/GTIDBUS/8.0++FAQs#onboarding#videos

  2. include page alert on FAQ page, expand variable anchor name {alerting}
    alert page question #4, anchor = {grafana}
    links = https://confluence.prod.aws.jpmchase.net/confluence/display/GTIDBUS/8.0++FAQs#alerting
    https://confluence.prod.aws.jpmchase.net/confluence/display/GTIDBUS/Alert#grafana

1 answer

0 votes

Hi  @Jeannette Osbaldeston 

welcome to this wonderful community 
Linking to a tab can be tricky (have look on this useful article here) I made similar experiences. What is important is to get a unique “Link ID” for the tab

  • URL format when linking to a tab in the same Confluence space.

    [page-name]#[tab-link-ID]

  • URL format when linking to a tab in a different Confluence space.

    [space-key]:[page-name]#[tab-link-ID]


From what you've written:

  1. Wouldn't the # be #Onboarding question to get you to the tab?
  2. Same here: #Alert page question

Mentioned alternative as it may not work out in article is using tab-id - in your case as I see it is:

  • aui-uid-14
  • aui-uid-4

in html macro => please see article as mentioned! Worked for me.
Feel free to ask for more help!

Hi.  Thanks for the reply.  The issue is I cannot get to the location on the page I need.  I can get to the tab/child page - but it only goes to the top rather than to the location on the page

This instruction: [space-key]:[page-name]#[tab-link-ID]

Is this : GTIDBUS:Alert#grafana

#grafana is the link ID which is 2/3 of the way down on the page - it only returns to the top of the page having the anchor

Also maybe worth nothing, the anchor I am using lets you set an Anchor Name - I only get the one field - so there is not another field for ID.  For tabs yes there is an ID.  But for the question number on a page I need to link to [space-key]:[page-name]#anchorname

I have exactly the same issue:

  1. Edited document A
    1. Created anchor "XXX" in the lower part of the document, so that focusing on it requires to scroll-down.
    2. Created a link "jump to XXX" referencing "#XXX" somewhere else.
  2. Now when I click on the link, I have the choice to open the link into another tab, when I do that, the browser opens a new tab, opens the right document A, but IT DOES NOT JUMP down to the anchor. 

I am sorry, but it is a really basic and extremely necessary feature. Such cross links feature works in any editor even in most simple markdown editors and it should work!

Please explain me how to work around that.

Thank you in advance!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,087 views 20 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you