Forums

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

How do I set an external link to auto open in a new tab?

Natalie Sollock
Contributor
January 10, 2020

When I embed links it opens in the current tab. I am building an onboarding resource page, it would be nice if people could open multiple resources without having to go back and forth or using the right-click. We are all on MacBook, some of our windows folks get frustrated with "right-clicking" on the touchpad. 

1 answer

0 votes
Ansar Rezaei
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.
January 12, 2020

Hi

You have some options:

1- Go to Confluence Administration and add the following script to  Custom HTML

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

2 - You could enable confluence HTML Macro or install Bob Swift Atlassian Add-ons - HTML

and add your link at this way:

 

Selection_031.png

 

There are some other questions answered in the following posts, check them for more info:

https://community.atlassian.com/t5/Confluence-questions/Confluence-hyperlink-which-open-a-new-tab-or-a-new-window/qaq-p/406092

 

https://community.atlassian.com/t5/Confluence-questions/How-to-open-link-in-a-new-tab/qaq-p/227460

Natalie Sollock
Contributor
January 13, 2020

Thank you. 

Like Ansar Rezaei likes this
Ansar Rezaei
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.
January 13, 2020

Feel free to ask if you have any other questions.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events