-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Macros - Other - Native (1st Party)
-
None
-
1
-
Severity 3 - Minor
Issue Summary
The Table of Content (TOC) macro does not function correctly with Rich-text macros when a page is published. While the TOC macro works as expected in edit mode, it fails to navigate to the headers inside the macro when on published page view.
The issue seems to be related to the way that TOC macros are built. In the view page it uses the native browser mechanism for jumping to a header, while it has a different (more programmatically) logic for the edit-mode.
Steps to Reproduce
- Create a Dynamic Content Macro with bodyType = rich-text.
- Insert the macro into a Confluence page and add some headings within the macro.
- Add additional headings outside the macro.
- Place a Table of Content macro at the top of the page.
- Publish the page.
Expected Results
Clicking on any header link in the TOC macro should scroll the page to the corresponding header, regardless of whether the header is inside or outside the Rich-text macro
Actual Results
- The TOC macro correctly links to headers outside the Rich-text macro.
- The TOC macro fails to navigate to headers inside the Rich-text macro once the page is published.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available