Bug: Links with square brackets get replaced by empty (anchor # hashtag) links

Leo Tulipan
Contributor
February 13, 2022

We have a reproduceable problem

We are using a cloud accounting app, that generates deep links with long parameter lists wich aren't properly saved. There is a work-around but it is error-prone. I added the Example, which is long too the end of this post (but you cannot access it, due to login restrictions). This link it uses the square bracket special chars [ ] in its params

1) Edit a confluence page
2) mark a text
3) insert link
4) paste the long link
5) look at the link: it seems to be ok
6) save the page
7) BUG: on save the link got replaced by # (an empty anchor link)

Workaround

instead of 2-4:
2) paste the link and press ENTER
3) Link got turned into a clickable link, hover and choose edit
4) click on the text/description which is currently the same as the url and manually write the text you want to have shown
-> continue as above

This is not proper behaviour. I don't know why it doesn't work in the link edit popup to save such a link, but it works when your system turns it into a link on enter?

Regards
Leo

Non-working (login/auth will be missing) Example:

https://domonda.app/documents?clientCompanyRowId=6fdb9223-db0e-6f8b-afeb-e82cab958085&clientCompanyTagRowIds[]=0a6a87a5-688f-4d3b-454b-d626a3212d2c&clientCompanyTagRowIds[]=804d9e06-79c1-4b53-9849-e184375cc1d7&clientCompanyTagRowIds[]=13600316-1bc4-4d61-aa0e-fe49a8801230&clientCompanyTagRowIds[]=8fd8aa3e-9689-4ac4-a424-8f6a64d4f47a&clientCompanyTagRowIds[]=e62f646b-640e-4d54-4590-033a1a83102b&clientCompanyTagRowIds[]=0a3b1eca-aa71-4e9d-abb2-51ade20b128b&clientCompanyTagRowIds[]=06ef088a-c59a-46d...

2 answers

1 accepted

2 votes
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 14, 2022

Hello Leo,

Thank you for raising this question with the Atlassian Community! There's a known bug that causes square brackets to convert to the hash aka pound symbol:

  • CONFCLOUD-72438 Confluence pages with links containing "[]" will turn into "#" after being published

The current workaround is to update the URL to use raw ASCII for the square brackets. You can use the below ASCII.

[ = %5b
] = %5d

Essentially, you would replace the [] characters with the ASCII above. Please give that a try and let us know if it helps.

Take care,

Shannon | Atlassian Community Support

Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2022

Thanks @Shannon S 

Eligh Corchis-Scott
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 28, 2024

I'm having the same issue with round brackets.

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 13, 2022

Hi @Leo Tulipan 

Hmm, Strange!!

Maybe while saving there is a limit to the number of characters for the link to store it.

I would check with Atlassian on this and get back to you 

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events