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

How to make non-http urls in Confluence 5.0.3

TenLeftFingers March 23, 2014

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
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2014

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.

TenLeftFingers March 24, 2014

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.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 24, 2014

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

TenLeftFingers March 24, 2014

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
TAGS
AUG Leaders

Atlassian Community Events