How to open external links in a new window in Confluence?

How to open external links in a new window in Confluence?

3 answers

1 accepted

This widget could not be displayed.

Or a roll your own version in a user macr

## Macro Name: new-window-link
## Macro title: New Window Link
## Macro has a body: Y 
## Body processing: Escape HTML
## Output: HTML
##
## Developed by: Matthew Cobby matt@andamooka.com

## @param Link:title=External URL|type=string|required=true|desc=The external URL for the link

<a href="$paramLink" target="_blank">$body</html>

and a usage example

{new-window-link:Link=http://www.atlassian.com}
Atlassian in a new Window!
{new-window-link}

Hey Mathew, it worked!!! Thank you so much!

Hi Matthew,

I have used your macro (as described above) only problem is that when I click on the link it opens a new page and then adds the address (I entered in the macro) to the end of the URL of that page and tries to open that ? Any ideas what I may have done wrong ?

This widget could not be displayed.

Karina,

You may want to verify this doc and this improvement too. Hope that helps !!!

Hi, thanks for your answer. I ready the doc and the improvement and apparently the only way to do it is with the Customeware Linking Plug in. But how? Any help would be great.

This widget could not be displayed.

If you're asking how to use the Customware macros, the documentation is a bit sparse but it is here

http://wiki.customware.net/repository/display/AtlassianPlugins/link-window

and their example is:

{link-window:http://www.foo.com/}Link text{link-window}

You could also write your own user macro if you didn't want to use a plugin

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
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

142 views 16 7
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