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
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.
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
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.
Related feature request for Confluence - https://jira.atlassian.com/browse/CONF-11194
SpeakEasy is not being supported anymore. So, I'm not sure what other options we have at this point.
Stuffing what stuff?
The link is dead...
Like everything else in JIRA, there is no easy way of doing it.
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.
404 link
that is only valid for JIra Server
offered by Ramkumar K Rhttps://chrome.google.com/webstore/detail/open-in-new-tab/cplillmhmcegjlhcbedmgmalbgjpmlkh
The solution is here:
how-to-force-links-to-open-in-a-new-window
This dosn't work for the cloud version.
Doesn't work, or atleast not where it matters like links to pull requests / branches from Jira tasks
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.
This works for me:
<a target="_blank" rel="noopener noreferrer" href="XXXX">Link text</a>
Doesn't seem to work in the cloud solution
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 :-/
also, how annoying to write this code everytime you put a link anywhere???
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
Atlassian has this slated for release in Jira 8.4:
It's finally coming.
wow... took long enough
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 don't have that option (in JIRA), is this something Admins can turn off?
I added above code in html block, but still it’s not working.
do we need to add anything else to make it work?
Update for anyone looking at this. Atlassian posted and said they will not make this behavior possible to be set as universal for external links, even as a user/admin setting.
I wish they would sort this out.
It's 2021 and jira cloud still opens links in the same window / tab.
I think you're better off using a browser extension than waiting for atlassian to implement something.
I use New Domain in New Tab in Chrome, works fine.
While at it, I also can recommend Hide Empty Labels on JIRA Boards extension - works nice as well.
Maybe there's smth for firefox as well, but me simp for google mate.
You can install this extension on chrome. It's work for Stackoverflow also.
https://chrome.google.com/webstore/detail/stackoverflow-jira-extern/omobkjbchckaocdkcbeapemooohjgbnk
It looks like you're new here. Sign in or register to get started.