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

      Problem

      After inserting a link to an anchor in a page, Confluence seems to be truncating part the resulting URL, making the link useless.
      For example, a link to an anchor named "section two" would be rendered as

      https://<account>.atlassian.net/wiki/display/<spaceKey>/<page>#<page>-sectiontw
      

      (note the missing "o" letter at the end of the link).
      The issue seems to be intermittent.

      Steps to Reproduce

      1. Create a new page
      2. Create a numeric list with titles that will eventually be links. (such as: 1. link one, 2. link two, etc.)
      3. Create 4 h3 headers with some text, below the numbered list ("section 1", "section 2", etc.)
      4. Above each h3, insert anchors ("section one", "section two", "section three", etc.)
      5. For each of the items in the enumerated list at the top, highlight the text and click the link icon.
      6. For the link, use the corresponding anchor that was just created (i.e., "#section one" or "#section two").
      7. Save the page.

      Expected Result

      Links would point to the anchors correctly

      Actual Result

      Some of the links are not rendered properly

      Reproduced using the following environments:

      • OS: Windows 7
        Chrome 26.0.x
        IE9
      • MacBook Pro OSX 10.8.3
        Safari 6.0.4

      Workaround (From Michael in the comments)

      Click the "Save" button after entering the anchor destination, rather than pressing the Enter key.

            [CONFSERVER-29311] Confluence truncates anchor links

            George Varghese made changes -
            QA Demo Status New: Not Needed [ 14332 ]
            QA Kickoff Status New: Not Needed [ 14236 ]
            Resolution New: Low Engagement [ 10300 ]
            Status Original: Gathering Impact [ 12072 ] New: Closed [ 6 ]
            George Varghese made changes -
            Labels Original: affects-cloud affects-server anchor-links anchor-macro editor editor-other linking New: affects-cloud affects-server anchor-links anchor-macro cleanup-seos-fy25 editor editor-other linking
            SET Analytics Bot made changes -
            Support reference count Original: 5 New: 4
            SET Analytics Bot made changes -
            Support reference count Original: 4 New: 5
            SET Analytics Bot made changes -
            UIS Original: 3 New: 1
            SET Analytics Bot made changes -
            UIS Original: 1 New: 3
            SET Analytics Bot made changes -
            UIS Original: 0 New: 1
            SET Analytics Bot made changes -
            UIS Original: 1 New: 0
            Ellen Oates made changes -
            Labels Original: affects-cloud affects-server anchor-macro editor editor-other linking New: affects-cloud affects-server anchor-links anchor-macro editor editor-other linking
            Bugfix Automation Bot made changes -
            Support reference count Original: 3 New: 4

              Unassigned Unassigned
              jspaniol Jeison
              Affected customers:
              15 This affects my team
              Watchers:
              18 Start watching this issue

                Created:
                Updated:
                Resolved: