Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Karina Clemente
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

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

3 answers

1 accepted

2 votes
Answer accepted
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

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}

Karina Clemente
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

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

Nick Knight
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2014

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 ?

0 votes
MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

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}

MatthewC
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

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

0 votes
Abdoulaye Kindy Diallo
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

Karina,

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

Karina Clemente
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2012

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events