Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a link (of selected text part) that by default opens in a NEW browser tab?

Eugene Yegorov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2019

Is it possible to create a link (out of the selected text part) that will by default open in a NEW browser tab instead of the current tab?

Thanks!

1 answer

0 votes
Pavel Potcheptsov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2019

Add this to Custom HTML settings At end of the HEAD to open any external links in new Tab.


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

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events