Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-43407

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

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? 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.

      Attachments

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

        Issue Links

          Activity

            People

              cqian@atlassian.com Clarissa Qian
              jalor Janice Alor (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: