Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,464,381
Community Members
 
Community Events
176
Community Groups

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

Edited

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

https://www.w3schools.com/tags/ref_urlencode.ASP

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!!

Thanks,
Pramodh

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.

https://jiraserver/secure/CreateIssueDetails!init.jspa?pid=1234%26reporter=morris

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 

Use

& in place of &

It should work!!

Thanks,
Pramodh

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

@Pramodh M am I misinterpreting your solution?

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events