Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-72438

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

XMLWordPrintable

      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.

        1. Screen recording.webm
          9.55 MB
          Nitika Arora
        2. Screenshot 2023-06-07 at 10.52.28 AM.png
          162 kB
          Nick Yang

              2797cdbebccd zhikun xu (Inactive)
              9219e3807eac Nitika Arora
              Votes:
              9 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: