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

Navigation Field in Documentation Theme breaks if using headers with formatting macros

    XMLWordPrintable

Details

    Description

      If you add a header into the Navigation field in the Doc Theme configuration, then add formatting (such as color), it will not render correctly and create a junk <a> element:

      <h2>
         <a name="DocThemeHome-[&lt;font color=" #ff0000"="">Test link in h2 and red|Home]"&gt;</a>
         <a href="/pages/createpage.action?spaceKey=DT&amp;title=Home&amp;linkCreation=true&amp;fromPageId=2523156" class="createlink"><font color="#ff0000">Test link in h2 and red</font></a>
         <font color="#ff0000">Test link in h2 and red</font>
         </a>
      </h2>
      

      The markup used in the attached screenshot that also created the above HTML is:

      h2. [{color:#ff0000}Test link in h2 and red{color}|Home]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alaskowski Adam Laskowski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: