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

Links To Different Project Anchors Breaks Whenever Resaved

XMLWordPrintable

      Steps to Reproduce

      1. Create a page from Space A.
      2. Add an anchor into the page from Space A with the name test.
      3. Create another page from Space B.
      4. Add an anchor reference to the anchor from the Space A's page created in Step 1.
      5. Save the page.
      6. Edit the page again and edit the anchor link without doing any changes then save it.
      7. Save the page and observe the results when you hit the anchor link.

      Expected Behaviour

      The anchor link from Space B redirects user to the anchor from Space A.

      Actual Behaviour

      The anchor link is broken and redirection will not work.

      Observations

      The parameters were messed up upon saving the anchor link without modifying any values.

      Broken Anchor Link
      <p><ac:link ac:anchor="A" /><ac:link ac:anchor="ABC"><ac:plain-text-link-body><![CDATA[BC]]></ac:plain-text-link-body></ac:link></p>
      
      Workable Anchor Link
      <p><ac:link ac:anchor="ABC"><ri:page ri:content-title="ABC Anchor" ri:space-key="BOX" /><ac:plain-text-link-body><![CDATA[ABC]]></ac:plain-text-link-body></ac:link></p>
      

              Unassigned Unassigned
              kyong Kok Yan Yong (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: