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

Confluence anchor link redirection is broken with title containing double quote or colon or tab

XMLWordPrintable

      Step to reproduce:

      1. Create a page with the title containing either double quote (test "test") or colon (test: test)
      2. Add an anchor with the name test01
      3. Create a new page and add the link to the anchor (test "test"#test01 or test: test#test01 or test: test test#test01)
      4. Save the page.
      5. Edit the page again and edit the link then save it.

      Expected behaviour:

      The anchor link to link back to the page container.

      Current behaviour:

      The link is showing broken on the page after save the link.

      Root cause:

      It seems that Confluence did not translate the page title correctly, as in the page storage format:

      1. With the double quote:
        <ac:link><ri:page ri:content-title="test &ldquo;test&rdquo;" /><ac:plain-text-link-body><![CDATA[test “test”#test01]]></ac:plain-text-link-body></ac:link>
        
      2. With the colon:
        <ac:link><ri:page ri:content-title="number one" ri:space-key="test" /><ac:plain-text-link-body><![CDATA[test: test#test01]]></ac:plain-text-link-body></ac:link>
        

      The issue is not reproduce with single quote, hyphen.

            Unassigned Unassigned
            yilinmo Yilin (Inactive)
            Votes:
            13 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: