How do I prevent confluence from encoding my '%' character in my url?

For example, I make a new web link and put the address as:

http://www.google.com/?truth=me%3Dcool

And the link text as:

test

When I save the page, the address turns into:

http://www.google.com/?truth=me%253Dcool

The link text stays the same:

test

This is not acceptable, it ruins the intentional %'s I have in my url.

3 answers

This widget could not be displayed.

% is not a character you can use in urls without encoding. 

Have another look at your first url, it actually says ?truth=me=cool, because the % in it indicates that there's an encoded character next, and %3D is "="

Confluence is doing the encoding correctly for you, turning your % into %25

This widget could not be displayed.

Hi Kelv,

If you want to use a specific link and you don't want Confluence to change it in any way, you need to embed it in an HTML macro.

 

This widget could not be displayed.

I have just experienced the same behavior, when pasting the URL of a JIRA JQL search into a Web Link.

The JIRA Filter Macro is not always desirable, as it will show the filter results, or just print the number of results.

Sometimes, we just want a named hyperlink to some JQL search in Jira. This is only possilbe using the Web Link.

So when pasting the URL of the JIRA JQL search, and then saving the link, all % chars are encoded to %25. So what was "%3D", becomes, "%253D".

.... now for the ridiculous part....

Edit the Web Link, and then save it again, without changing anything.

It keep appending %25 to the URL.

So what was "%253D", becomes "%25253D", "%2525253D", "%2525253D", "%2325253D".... for every save.

Really???

It could be that "Confluence is doing the encoding correctly for you, turning your % into %25" but it is not meeting the user need, and it breaks everything.

The Web Link is blind to this use case.

This is a clear Bug in usability!

 

No, you're wrong.  And right.

You are wrong because "Confluence is doing the encoding correctly for you, turning your % into %25" is correct.  It has to, or you get garbage.

You are right when you say "Confluence is doing the encoding correctly for you, turning your % into %25 repeatedly".  That is absolutely a bug.

Correct. However, from the usabilty perspective, this is not working. It could be technically correct, but it renders this feature useless.

The JIRA Filter Macro will clean the URL for you, and then show you the JQL.

So, the Web Link dialog could do the same, i.e., decode on paste, then encode on save.

The usability on the encoding is irrelevant - it doesn't work without encoding, so you need it.  But yes, it's broken when it repeatedly does it.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

170 views 12 7
Read article

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