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

Incorrect links when two items have the same name in the document

    XMLWordPrintable

Details

    Description

      Hi,

      [background-optional to read]
      Since Confluence 3.0 I would like to use the new PDF export feature to produce external documentation.
      I have to use a single page export as I have several documentations in the same space.
      With the single page export to PDF, I can't benefit of the table of contents rendered by the PDF export. So I would like to use the toc macro to render my own table of contents in the PDF documentation.
      [/background]

      I try to use the toc macro to generate my table of contents in a documentation, however for each items with the same name, the generated anchor are identical.

      So in the following example :

      h1. Chapter 1
      h2. Introduction
      
      h1. Chapter 2
      h2. Introduction
      

      The table of contents will generate the same link for the two "Introduction" items.

      [Document#Introduction]
      

      Especially confusing when rendering in a very large PDF export.

      Attachments

        Issue Links

          Activity

            People

              pcher Philip Cher
              6cad095e5207 hugo lassiege
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: