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

Using the Unlink function on URL-like strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Timed out
    • Icon: Low Low
    • None
    • 6.1.1, 6.4.2
    • Content - Linking
    • None

      Summary

      The "Unlink" function which turns a link into a string performs some additional processing on the link to make it conform to a URL format.

      Environment

      Confluence 6.1.1

      Steps to Reproduce

      1. If you copy a string such as "https://www.mycompany.com/<userid>/<mode>" into a Confluence page, Confluence automatically converts the string into a URL as it is very similar to a URL. In this case, however, this string is not a valid URL as it contains two tags at the end since the purpose of this string is to show the format of a URL used for a particular operation.
      2. While the conversion from a string to a URL is not necessarily a bad thing, if you convert this newly created URL back to plain old text by way of clicking on the URL and then the "Unlink", the Unlink function eliminates the substrings <userid> and <mode> and leaves a string like this: "https://www.mycompany.com//"

      Expected Behavior

      The URL-like string is left intact (eg. "https://www.mycompany.com/<userid>/<mode>").

      Actual Behavior

      The "Unlink" function processes the URL-like string to make it look like a valid URL by changing the original string content.

      Workaround

      1. If you have the Confluence Source Editor, you can remove the <a> and </a> tags from around the URL after pasting it into the page.
      2. Another approach would be to insert the URL as markup. Then, click on the link portion of the URL and click on Unlink.

              Unassigned Unassigned
              sshaw@atlassian.com Steve Shaw
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: