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

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

XMLWordPrintable

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

              Unassigned Unassigned
              85e3bb78accb aprieto
              Votes:
              28 Vote for this issue
              Watchers:
              30 Start watching this issue

                Created:
                Updated:
                Resolved: