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

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 ?

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.

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

72 views 0 11
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