Confluence pages with links containing "[]" or "{}" or any other special character will turn into "#" after being published

XMLWordPrintable

    • 11
    • Severity 3 - Minor
    • 2

      Issue Summary

      • Confluence pages with links containing characters such as "[]", "{}" will turn into "#" after being published
      • "{", "}", "|", "\", "^", "~", "[", "]", and "`" , en-dash are considered "unsafe" characters] and appear to cause problems when used in Confluence Cloud URLs.

      Steps to Reproduce

      1. Use Cmd + K and paste [https://gitlab.dgtalpartners.com/bloom/processing/tokenizer-rpc//merge_requests?label_name[]=v2.0|https://gitlab.dgtalpartners.com/bloom/processing/tokenizer-rpc//merge_requests?label_name[]=v2.0] into the URL field.
      2. Publish

      Expected Results

      • View the link href, it'll point to `[https://gitlab.dgtalpartners.com/bloom/processing/tokenizer-rpc//merge_requests?label_name[]=v2.0|https://gitlab.dgtalpartners.com/bloom/processing/tokenizer-rpc//merge_requests?label_name[]=v2.0]`

      Actual Results

      • View the link href, it'll point to `#`
      • Edit page
        *. Link is now `#` but text remains as original URL

      Workaround

      The current workaround is to update the URL to use raw ASCII for the square brackets. You can use the below ASCII

      [ = %5b
      ] = %5d
      { = %5B
      } = %5D
      

      Basically replace the [] or {} characters with the above ASCII.

            Assignee:
            zhikun xu (Inactive)
            Reporter:
            Nitika Arora
            Votes:
            9 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: