Table of Content macro won't work with Rich-text dynamic content macros

XMLWordPrintable

    • 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

      1. Create a Dynamic Content Macro with bodyType = rich-text.
      1. Insert the macro into a Confluence page and add some headings within the macro.
      1. Add additional headings outside the macro.
      1. Place a Table of Content macro at the top of the page.
      1. 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

            Assignee:
            Unassigned
            Reporter:
            Gabriel Dias (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: