Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-43090

TOC macro in sidebar creates invalid URL

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aworley Ann Worley (Inactive)
              Votes:
              32 Vote for this issue
              Watchers:
              29 Start watching this issue

              Dates

                Created:
                Updated: