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
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
Asked May 24, 2018 in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

604 views 18 16
View question

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