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
Community showcase
Posted yesterday in Canada

Happy New Year - First AUG of the year - great success

Hi Everyone, Hope everyone had a great holiday season and is ready for an exciting 2019.  We had our first AUG last night featuring Tempo Timesheets.  A great presentation and lots of int...

17 views 0 1
View post

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