It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Open external links in new tab or window

Hi,

every time I click on a link in confluence or a link in a jira comment that is aiming to an external website it opens the link in the same tab as jira studio. Is there a possibility to general open external links in a new tab?

Haven't found it so far.

Thanks,

Tobias

9 answers

1 accepted

3 votes
Answer accepted

There is a full example of what Dieter is talking about here: http://confluence.atlassian.com/display/DOC/How+to+Force+Links+to+Open+in+a+New+Window

It can be done just by stuffing that stuff in the custom html, as well as a speakeasy extension, or using {html} macros, if that is enabled on the hosted confluence.

Stuffing what stuff?

The link is dead...

Like # people like this

that is only valid for JIra Server

Like everything else in JIRA, there is no easy way of doing it. :|

I believe there is no way to achieve this in JIRA, however, the workaround in the first comment in this improvement request might work - https://jira.atlassian.com/browse/JRA-9380.

As for Confluence, adding a custom JavaScript code (as suggested by Jamie) is an option, but such modification is not allowed in OnDemand instances.

The least that you can do (as an end user) is to use CTRL+CLICK, which is a command understood by most modern browsers, to open the link in a new tab.

For Jira, it looks like Atlassian has this slated for release in Jira 8.4:

https://jira.atlassian.com/browse/JRASERVER-9380

"We've added the ability to open external links in a new tab in your browser and made this option default. However, if you like all links to open in the same tab, you can easily change this in YourUserProfile > Profile > Preferences > External links."

 

For Confluence, it looks like Atlassian has rejected the idea as "Won't Fix" in favor of plugins:

https://jira.atlassian.com/browse/CONFSERVER-11194

This could be implemented using a SpeakEasy extension which scans the page for <a> tags and inserts the attribute target="_blank"

So it can be done but i cannot provide code here

This works for me: 

<a target="_blank" rel="noopener noreferrer" href="XXXX">Link text</a>   

Doesn't seem to work in the cloud solution

also, how annoying to write this code everytime you put a link anywhere???

Like # people like this

SpeakEasy is not being supported anymore. So, I'm not sure what other options we have at this point. 

Atlassian has this slated for release in Jira 8.4:

https://jira.atlassian.com/browse/JRASERVER-9380

"We've added the ability to open external links in a new tab in your browser and made this option default. However, if you like all links to open in the same tab, you can easily change this in YourUserProfile > Profile > Preferences > External links."

It's finally coming.

wow... took long enough

I use this chrome plugin https://chrome.google.com/webstore/detail/open-in-new-tab/cplillmhmcegjlhcbedmgmalbgjpmlkh to force jira to open external links in a new tab.

Doesn't work, or atleast not where it matters like links to pull requests / branches from Jira tasks

This dosn't work for the cloud version.

You can hold down Ctrl on Windows or  on Mac when clicking a link to have it open in a new tab. Alternatively, you can right-click the link and select Open link in new tab or drag and drop the link to browser tab. These seem to be the easiest ways to address JIRA not opening links in a new tab by default.

That doesn't solve the issue, though. The topic is more on how to force links to open in a new tab.

Agreed... For example, if I am reading email in Google / Outlook / anything else, links default to a new tab or window. This is also a very common thing in similar tools where a comment may link to an external resource (like git, a news article, a link to a page on the site related to the ticket, etc). Even links to other tickets I would prefer to have open in a new tab.

Remembering to command / control click in the Jira tool, when every other tool that has external links defaults to a new tab is more of a nuisance than anything. Especially since it's technologically easy to implement (on display, if link, add link tag option target="_blank")... 

Thread started in 2011... It's 2019 and nothing yet :-/ 

Like # people like this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

344 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you