Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Uploading wiki markup mangles URLs with parameters - converting & to &


I'm using REST to upload wiki content to my Confluence server (v7.5.2).

'body': { 'storage': { 'representation': 'wiki', 'value': body } }

Where my data has some wiki markup, including something like this:

[ Click here | https://server/Create!init.jspa?pid=123&param1=abc&param2=14 ]

which Confluence then turns into:

[ Click here | https://server/Create!init.jspa?pid=123&param1=abc&param2=14 ]

Is there a way to escape the & in my source so that Confluence will keep the URL intact?

1 comment

Pramodh M Community Leader Jan 08, 2022

Hi @Joel Morris 

Welcome to the Community!!

Wherever the Special Characters are there, you can include HTML URL Encoding Ref

So if you include %26 API should not return error and your URL will also work fine

Please let me know if it works for you!!


Like Joel Morris likes this

Thanks @Pramodh M !  

It certainly looks right in Confluence now!  But the link still doesn't do what I expect in JIRA.


Jira gives the error "You have not selected a valid project to create an issue in."

But if I change that %26 to an & in my browser's address bar, then Jira behaves correctly.

Pramodh M Community Leader Jan 08, 2022

Hi @Joel Morris 


& in place of &

It should work!!


Jira CreateIssueDetails!init.jspa appears to actually need the & character between the key=value pairs.

@Pramodh M am I misinterpreting your solution?


Log in or Sign up to comment
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

42,644 views 29 133
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you