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

Links to anchors in the same page don't work if page title contains special characters (eg ampersand, colon, slash, parentheses)

    XMLWordPrintable

Details

    Description

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

      Description
      Links within the same page don't work if the page title has ampersands.

      Steps to replicate it:

      • Create a new page with a title that has ampersands (e.g. Test & Test)
      • Enter some content
      • Create an anchor somewhere in the page (e.g. testanchor)
      • Create a link to the anchor created in above step

      The link built by Confluence has the following format:
      http://[host name]/pages/viewpage.action?pageId=[page id]#Test&Test-testanchor
      which is not correctly resolved, and therefore clicking on the link doesn't navigate to the anchor.

      If I manually modify the link to:
      http://[host name]/pages/viewpage.action?pageId=[page id]#Test&Test-testanchor
      or:
      http://[host name]/pages/viewpage.action?pageId=[page id]#Test%26Test-testanchor
      The link works correctly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              85e3bb78accb aprieto
              Votes:
              21 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: