Can't create link in confluence

I can't create link in confluence to the following location due to characters [] .

http://www.abctest.com/knowledge-base/welcome.html?tw[hid]=17

Any idea ?

1 answer

1 accepted

Try escaping the '[' and ']' characters. If you use the editor, it should do this for you anyway.

http://www.abctest.com/knowledge-base/welcome.html?tw%5Bhid%5D=17

if you want more info, here is a reference:

http://www.w3schools.com/tags/ref_urlencode.asp

Which editor converts that??

the Confluence editor.... if you go "Insert menu > Link" and paste your link into the Address field, the editor should auto-escape it for you

My editor does not auto-escape. which version of confluence are you using?

just tried in 4.2.13 and 3.5.17, both appeared to do the same...

Doh! I just worked out what it is!

I'm just doing a right click on your URL in the question above, copy shortcut and pasting it in to the editor. The URL has already been escaped by Answers & I'm just picking it up

Sorry, you have to do it manually.

Are there any macros or plugins that can do without encoding the url?

We have to use "[]" instead of ASCII value.

Not sure I understand... %5D and %5B are the same codes as [ and ]. The web application on the end should be able to decode this quite happily.

if for some reason it can't... then I'd use HTML macro or write a small user macro to dump out the HTML directly

Do you have any reference why [] is not working in confluence?

I'd day that it's because the '[' character is a trigger for a link to be inserted. https://confluence.atlassian.com/display/DOC/Using+Autocomplete

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

359 views 20 10
Join discussion

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