Summary

      If I add a TOC macro to the sidebar the links do not work

      Steps to Reproduce

      1. Install Confluence 5.9.12 or Confluence 5.10.1
      2. Create a page with some headings
      3. Go to Space Tools>Look and Feel>sidebar, header and footer
      4. Paste this into the sidebar field:
        {toc:maxLevel=2|style=disc|indent=10px|absoluteURL=false}

        or even simply

        {toc}

      Expected Results

      The links from the TOC would lead to the headings on the page

      Actual Results

      An invalid URL is created by the links in the sidebar. Please see attached screenshots showing the TOC URLs created by:

      • clicking on a TOC macro link in a page


        compared to
      • clicking on a TOC macro link in the sidebar

      Workaround

      Adding absoluteUrl=true to the wiki markup for the sidebar helps for some instances.

        1. TOCpageURL5.10.1.png
          TOCpageURL5.10.1.png
          125 kB
        2. TOCpageURL5.9.12.png
          TOCpageURL5.9.12.png
          463 kB
        3. TOCsidebarURL5.10.1.png
          TOCsidebarURL5.10.1.png
          227 kB
        4. TOCsidebarURL5.9.12.png
          TOCsidebarURL5.9.12.png
          255 kB

            [CONFSERVER-43090] TOC macro in sidebar creates invalid URL

            SET Analytics Bot made changes -
            UIS Original: 2 New: 3
            SET Analytics Bot made changes -
            UIS Original: 3 New: 2
            SET Analytics Bot made changes -
            UIS Original: 2 New: 3
            SET Analytics Bot made changes -
            UIS Original: 3 New: 2
            SET Analytics Bot made changes -
            UIS Original: 4 New: 3
            SET Analytics Bot made changes -
            UIS Original: 3 New: 4
            SET Analytics Bot made changes -
            UIS Original: 6 New: 3
            SET Analytics Bot made changes -
            UIS Original: 3 New: 6

            "Zero-config TOC as retractable sidebar" is a significant feature to navigate long policy documents. Slab has it OOTB:

             

            arboliveira added a comment - "Zero-config TOC as retractable sidebar" is a significant feature to navigate long policy documents. Slab has it OOTB:  
            SET Analytics Bot made changes -
            UIS Original: 5 New: 3

              Unassigned Unassigned
              aworley Ann Worley (Inactive)
              Affected customers:
              32 This affects my team
              Watchers:
              29 Start watching this issue

                Created:
                Updated: