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.
Stuffing what stuff?
The link is dead...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Like everything else in JIRA, there is no easy way of doing it. :|
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wish they would sort this out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Related feature request for Confluence - https://jira.atlassian.com/browse/CONF-11194
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have that option (in JIRA), is this something Admins can turn off?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wow... took long enough
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SpeakEasy is not being supported anymore. So, I'm not sure what other options we have at this point.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works for me:
<a target="_blank" rel="noopener noreferrer" href="XXXX">Link text</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doesn't seem to work in the cloud solution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
also, how annoying to write this code everytime you put a link anywhere???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can install this extension on chrome. It's work for Stackoverflow also.
https://chrome.google.com/webstore/detail/stackoverflow-jira-extern/omobkjbchckaocdkcbeapemooohjgbnk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added above code in html block, but still it’s not working.
do we need to add anything else to make it work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This issue is being fixed in:
In JIRA Cloud, you have to be in the new issue view to have this turned on :-(.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That doesn't solve the issue, though. The topic is more on how to force links to open in a new tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :-/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The solution is here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This dosn't work for the cloud version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doesn't work, or atleast not where it matters like links to pull requests / branches from Jira tasks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.