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)

      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.

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

            Daniel Fierro added a comment - - edited

            Parentheses in the page title also seem to be a problem. Guessing any special character may be a limitation.

            Daniel Fierro added a comment - - edited Parentheses in the page title also seem to be a problem. Guessing any special character may be a limitation.

            not only anchors, but linking to pages with headlines (i.e.: Test & Test#New Heading) does also not work.
            Using Chrome with Conf 5.4.2

            Andrea Tanzer added a comment - not only anchors, but linking to pages with headlines (i.e.: Test & Test#New Heading) does also not work. Using Chrome with Conf 5.4.2

            Xinya He added a comment -

            5.1.5 - Fails if page title contains ampersands, for firefox.
            Works for chrome though.

            Xinya He added a comment - 5.1.5 - Fails if page title contains ampersands, for firefox. Works for chrome though.

            5.1.4 - Also fails to jump if page title contains dots (.), as in the date, 2013.10.10, in Safari.

            Jeanne Nicole added a comment - 5.1.4 - Also fails to jump if page title contains dots (.), as in the date, 2013.10.10, in Safari.

            5.1.4 - Doesn't seem to be limited to just ampersand. Our page title with a slash ( / ) also caused anchor links to not jump...but only on IE. Chrome worked fine.

            Deleted Account (Inactive) added a comment - 5.1.4 - Doesn't seem to be limited to just ampersand. Our page title with a slash ( / ) also caused anchor links to not jump...but only on IE. Chrome worked fine.

            Seeing this issue in 5.1 as well.

            Matt Michal added a comment - Seeing this issue in 5.1 as well.

            samjones6 added a comment -

            I see the problem on 5.1.3, and this is not minor! Needs to be upranked!

            samjones6 added a comment - I see the problem on 5.1.3, and this is not minor! Needs to be upranked!

            +1

            aprieto added a comment - - edited

            I think I opened this issue under the wrong project... couldn't find a way to move it... please rectify.

            aprieto added a comment - - edited I think I opened this issue under the wrong project... couldn't find a way to move it... please rectify.

              Unassigned Unassigned
              85e3bb78accb aprieto
              Affected customers:
              21 This affects my team
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: