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

0 vote
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,

 

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.

FOR HOSTED VERSION

In the custom HTML, (end of HEAD) put

<script>
AJS.toInit(function(){
  $("a.external-link").attr("target","_blank");
});
</script>

Also if you want bonus points...

<style>
a.external-link {  
  background-image: url(http://bits.wikimedia.org/static-1.24wmf21/skins/Vector/images/external-link-ltr-icon.png);  
  background-repeat: no-repeat;  
  background-position: right center;  
  padding-right: 15px;  
}  
</style>

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.

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: https://marketplace.atlassian.com/plugins/com.brikit.contentflow/server/pricing

 

Thanks

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.  http://www.brikit.com/display/themepressdemo/Macro+Examples 

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Goff-Dupont
Published 2 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

37 views 2 3
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