How can I get links to open up in a new window on Confluence?

I want to insert links to external websites in my page and have them open up in a new window.  I am in the on demand version... Please give me some solutions...

Thank you

4 answers

1 accepted

This widget could not be displayed.
Davin Studer Community Champion Sep 19, 2014

There is no automated solution for this with ondemand. You can ctrl+click the links and they will open in new windows, but that is the only way that I know of right now.

Thanks David.. that does help so I can either right click or ctrl +click.. better than nothing

Hi Atlassian,

We want all links to open in a new tab, window. Please support for us.
My Confluence 6.0.0-OD-2016.12.2-1113.

Thanks so much,


This widget could not be displayed.

Haven't done that ever but can point to few directions. 

1- Add links in html macro use href to create a link. Than either you can use browser settings to setup to open links in new windows. 

2 - Can add java script in "Custom HTML" section of "General Configuration" to play around and open links in new windows. 

Davin Studer Community Champion Sep 19, 2014

This is for ondemand. Those are not available in ondemand.

I dont see that option in general config in the on demand version Simrat

Ahh, I wasn't aware. I always have been working on server version. Isn't there a provision to add macros in on demand version?

Browsers have an option to open hyper links in new windows if u want to try tht.

This widget could not be displayed.


In the custom HTML, (end of HEAD) put


Also if you want bonus points...

a.external-link {  
  background-image: url(;  
  background-repeat: no-repeat;  
  background-position: right center;  
  padding-right: 15px;  

That will make all external links open in a new tab.

Davin Studer Community Champion Sep 23, 2014

The question is for OnDemand ... no custom html.

Hmm. Bummer. Well, it's the right answer for people with the hosted version.

This widget could not be displayed.

I use an HTML Link Macro to do this.

Is this available for the cloud version of Confluence?

Which actual Brikit product contains the HTML link macro? It's difficult to tell from their website. Also, how much does it cost. I guessed it was in the Content Flow product but their pricing page is broken:



Not sure if it's available on the cloud version of Confluence. 

Brikit Theme Press product contains the "HTML Link" and "OPEN LINKS (NEW WINDOW)" macros. 

In the following link, scroll down to the bottom of the Brikit page to see all of the Macro examples that come with the Brikit Theme Press package. 

For the pricing, sorry I don't have that information as I'm not an administrator.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

496 views 7 6
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