Table of Contents does not properly use anchors from page links of Children Display

XMLWordPrintable

    • 5
    • Severity 3 - Minor
    • 0

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      If you have added Table of Contents macro that gets the information from Children Display macro, the links does not take you to the section of the page.

      Steps to Reproduce

      1. Create a PAGE
      2. Create Page 1 under PAGE
      3. Create 5 subpages under Page 1
      4. Create Page 2 under PAGE
      5. Create 5 subpages under Page 2
      6. Add a Table of Contents to PAGE
      7. Add Children Display macro to PAGE (parent page: Page 1)
      8. Add another Children Display macro to PAGE (parent page: Page 2)
      9. Click a link of subpages from the Table of Contents

      Expected Results

      • Clicking the link should bring you to the section of the page.

      Actual Results

      • Clicking the link doesn't bring you to the section of the page. URL link does not contain any anchor to the section of the page.

      Notes

      The reason for the absence of anchors in the TOC could be the lack of the "id" field in the h2 HTML that is generated for Children Display pages, as shown in the screenshots below:

      Contrary to what was explained in issue CONF-42832, a Table of contents Zone does not work around the problem.

        1. screenshot-5.png
          6 kB
          slava
        2. screenshot-4.png
          141 kB
          Felipe Rechia
        3. screenshot-3.png
          106 kB
          Felipe Rechia
        4. screenshot-2.png
          105 kB
          Felipe Rechia
        5. screenshot-1.png
          144 kB
          Felipe Rechia

            Assignee:
            Unassigned
            Reporter:
            Janice Alor (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: