Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

11 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

Like Chris Farace likes this

I don't have that option (in JIRA), is this something Admins can turn off?

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.

Deleted user Sep 23, 2019

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.

Like # people like this

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

This issue is being fixed in:

In JIRA Cloud, you have to be in the new issue view to have this turned on :-(.

it is not fixed for the jira cloud unless you fall into a certain conditions i.e. using next-gen projects and some other strange stuff...

To get around this, I've added the following code (via HTML block) to all my Confluence pages:

<script>
jQuery(document).ready(function() {
    jQuery(".external-link").attr("target", "_blank");
});
</script>

 

Still an issue in Jira and other Atlassian products.

I added above code in html block, but still it’s not working.

do we need to add anything else to make it work?

Suggest an answer

Log in or Sign up to answer
TAGS

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