Forums

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

Table of Contents (ToC) Macro Not Linking Headings In Different Tabs

Avin Deb June 19, 2020

Hello to everyone in the Community!

So I recently started working with Confluence 6.13 and have been stuck on solving a very basic functionality that I cannot seem to get working.

I created a page with various tabs using the Tabs Container Macro and the Tabs Page Macro. Each tab contains Headings. I added a Table of Contents (ToC) Macro above the Tabs Container Macro. So, now the ToC Macro displays all the headers on the current page across all the tabs. But clicking on the Headings doesn't jump to that particular Heading in an inactive tab.

Example -

In the picture below, Tab 1 contains the Heading 1 text, Tab 2 contains the Heading 2 text, Tab 3 contains the Heading 3 text. All of them are part of the ToC Macro.

But in the ToC Macro, clicking on Heading 1 will take me to the portion below as Tab 1 is active. But clicking on Headings 2 and Headings 3 will not take me to Tab 2 and Tab 3 respectively.

Please let me know how can this be solved. Or if there's a workaround.

Annotation 2020-06-19 124110.png

4 answers

1 vote
Jarrod Peeters
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2023

I have the same issue - I tagged "adaptavist" as I've seen them reply when the company is tagged.

0 votes
Laurier Cress
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2025

I know it's been some years since anyone has last posted on this thread but I came across the same issue today. I realized that this happens if you also place an anchor link next to the heading. The TOC doesn't work for headings that have anchor links. Hope this helps anyone who may still run into this issue today.

Abi Brown- Kolekti
Atlassian Partner
February 19, 2025

Hi Laurier

Hmm let me run this past my team and see if it needs a support ticket or a feature request - Are you on DC? 

Thanks

Abi 

Senior Customer Success manager 

 

0 votes
Amanda Tappo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2022

I'm guessing they didn't come up with a solution for this, because I just ran into this same issue. I know this is an old post, but in case you still need a workaround for this scenario, I ended doing the following:

  1. Remove the TOB macro from the top of your page
  2. Type out a list of the heading names, the same way a TOB would look when previewing your page
  3. Add an anchor next to each heading within your tabs. 
  4. Go back to the top of your page where you typed out your headings, and link each heading back to it's appropriate anchor

Wish it didn't involve us doing so much extra work, but it's still a good workaround. If anyone else knows of a better way though, please let me know!

0 votes
Joselyn Carías
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2021

I face exactly the problem you have described and I haven’t been able to figure it out. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events