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

Anchors can have Heading formats and are included in the TOC Macro

      Anchor macros can have the heading format, which will show up in the TOC macro (if it is the only object on the line, you get a blank line in your TOC list). If you then attempt to link to that anchor from another page, the anchor link will take you to the anchor's location in the TOC list instead of the anchor's location on the page.

      Here are the following steps on how to reproduce this bug:

      1. Create a page in any space
      2. Put in several Headings from h1. to h6.
      3. Put an Anchor macro somewhere on that same page and format it under any Headings from h1. to h6, or add the Anchor macro to one of the existing heading lines.
      4. Create a link pointing to that anchor
      5. Add the Table of Contents (TOC) macro on the top of the page
      6. Save the page
      7. The anchor link will appear as part of the TOC macro and break linking to the anchor later in the page.

        1. formatting.png
          formatting.png
          61 kB
        2. headings.png
          headings.png
          17 kB

            [CONFSERVER-26433] Anchors can have Heading formats and are included in the TOC Macro

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2903150 ] New: CONFSERVER Bug Workflow v4 [ 2997730 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2800997 ] New: JAC Bug Workflow v3 [ 2903150 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2737031 ] New: JAC Bug Workflow v2 [ 2800997 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2379723 ] New: JAC Bug Workflow [ 2737031 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2270420 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2379723 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2220900 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2270420 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2162531 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2220900 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1949733 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2162531 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1743786 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1949733 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1705117 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1743786 ]

              Unassigned Unassigned
              jcooi JoachimA
              Affected customers:
              10 This affects my team
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: