Square brackets in an external URL breaks the link


I am trying to include the following link in confluence. Confluence strips of the entire link. I have even tried to encode the url but without any success. If I remove the square brackets, everything works fine. So how do I solve this problem other than changing the default linking character to double brackers instead of the single bracket.

<a href="http://qualitytools/rrd/index.php?RD_COMMIT[]=&RD_COMMIT[]=Y&TARGET_RELEASE[]=IC616&MRD_ID[]=;&showTable=1&table=RRD---vs---MRD&genericFilters=;MRD_DESCRIPTION&tableMode=view&genericFieldsLeft=MRD_DESCRIPTION;;;MRD_OWNER;;;MRD_STATUS;;;PROJECT_ID&genericFieldsTop=PROJECT_NAME:L;;;STAFF_OWNER:L">Test</a>



1 answer


I have the same issue with curly brackets {  } . 

I wrote a tool to automatically push content in Confluence, using the REST API. Some external links are links to Sharepoint that sometimes contains an ID between brackets. With the brackets, the external link is lost and in the final storage format I can see <a></a> link with no href attribute. If I simply remove the brackets from the external URL, then a link is correctly created.

What would be the best solution:

  • Can we escape them for Confluence ? ( \{ or &#123; is not working)
  • Should we simply delete them ? (no other solution ?)




Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

29 views 0 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you