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

Inserting Wiki to Create Link to Page With Full URL Path Fails

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • None
    • 4.3.3, 4.3.7
    • None

      Hi,

      I noticed today that after upgrading to Confluence 4.3.3 from 3.5.6 in our staging environment that some of our links are now not rendering properly. I am able to replicate the issue in 4.3.3 by inserting the wiki code using the Insert -> Wiki Markup option in the editor.

      When inserted the following Wiki code will create the link, but it will drop off the symbol(also drops off an image if that is what you are using):

      [Test Page Destination (?)|TestPageDestination]
      

      Resulting xhtml:

      <ac:link>
        <ri:page ri:content-title="TestPageDestination"/>
        <ac:plain-text-link-body><![CDATA[Test Page Destination ]]></ac:plain-text-link-body>
      </ac:link>
      

      However, when the full URL path is specified the link is rendered correctly with the image included:

      [Test Page Destination (?)|http://opcsgmiscon01.csg.csgsystems.com/display/~woej01/TestPageDestination]
      

      Resulting xhtml:

      <a href="http://opcsgmiscon01.csg.csgsystems.com/display/~woej01/TestPageDestination">Test Page Destination <ac:emoticon ac:name="question"/>
      

      I have been able to duplicate this behavior on a variety of pages.

      Steps to reproduce

      1. Create a new page
      2. Click Insert - Wiki Markup
      3. Enter this markup (replace with a valid page name):
        [Test Page (?) |test+page]
        
        • Observe that the link does not render as an actual page - it attempts to create a new page when clicked
        • Observe that the does not appear either
      4. Edit the page and enter this instead (replacing with a valid full URL):
        [Test Page (?) |http://localhost:8090/TEST/test+page]
        
        • Observe that this works as expected
      5. Edit the page and enter this (note the space after the opening [ ):
        [ Test Page (?) |http://localhost:8090/TEST/test+page ]
        
        • Observe that the link does not render at all, it displays as text.

              shaffenden Steve Haffenden (Inactive)
              f6e78ee6334d Jimmy Woestman
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: