Escaping a backslash

Yesterday, we migrated from confleunce 2.7 to 4.x. Since the migration, links with a backslash in them are broken. In v 2.7, I had to escape the backslash with another backslash to make it work. Now, nothing works. 1 backslash or 2 - nothing works. For example,

In 2.7, this one worked nice:

[SQLCLUS1\SQL1|http://wiki/display/DBA/Details?run_1_cat=Servers&run_1_obj=SQLCLUS1\\SQL1&run_1=run]

In 4.x, this one displays as a hyperlink (the actual link is of course incorrect and so, when clicked does not render the page):

[SQLCLUS1\SQL1|http://wiki/display/DBA/Details?run_1_cat=Servers&run_1_obj=SQLCLUS1&run_1=run]

this one does not display a hyperlink (this is supposed to be the actual link):

[SQLCLUS1\SQL1|http://wiki/display/DBA/Details?run_1_cat=Servers&run_1_obj=SQLCLUS1\SQL1&run_1=run]

Any ideas?

2 answers

1 accepted

0 votes
Accepted answer

A colleague of mine suggested using %5C to replace a backslash. It worked like a charm.

Hi Ajay,

Becuase of the new editor in Confluence 4.x you can use the insert link option. I believe this is the best option for this case

Cheers

The above code is generated by a sql server stored procedure. How do I do this in there?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,011 views 14 12
Join discussion

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