How to make non-http urls in Confluence 5.0.3

We've just installed 5.0.3 and I'd like to insert a link that looks like this:

jdbcoraclethin:@(description=(sdu=33333)(enable=broken)(load_balance=yes)(address=(protocol=tcp)(host=www.oursite.com)(por=1111))(address=(protocol=tcp)(host=www.oursite.com)(port=1111))(connect_data=(service_name=user1)))

with the title 'Copy jdbc url from here'.

But this doesn't work and when I use the Insert Link method. It tells me the link is invalid unless I prepend it with http://- but this of course breaks the link.

How can I do this without putting a lot of messy urls on the page?

P.S: I tried adding a small bounty but the karma offered in the end was 5 times what I entered so I've cancelled until I figure that out..

1 answer

1 accepted

0 votes
Accepted answer

That's because it's not really a proper http based url, so Confluence can't understand it as a link.

I don't think you can do this without some code to tell Confluence "this is a non-standard link, please treat it the same way as an http url". I'd try doing that in a user macro though - I have seen this done before, but I'm not 100% sure it was with a user macro or a plugin macro.

Thanks Nic Brough. I've gone through the default macros and haven't found anything like that. Like I say, I could include them fully expanded like above but they page would look terrible. Maybe I could use some other form of hiding - like the cloak macro - but nothing would beat linking.

Thing is, it's NOT a link, it's a block of text that you want to format differently to other blocks of text.

Have another look at the user macros - you can use them to wrap formatting around blocks of text. Not the existing ones, but writing one for yourself - https://confluence.atlassian.com/display/DOC/Writing+User+Macros

Thanks Nic, that's a good failsafe option. I'll try the cloak macro first and failing that I guess I'm looking at creating a macro.

It's not a link, but it is a url. It would be great to have support for it for technical projects like ours. I'll take a look at your link, thank you.

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,551 views 25 14
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