Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,816
Community Members
 
Community Events
168
Community Groups

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

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

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

Like Ansar Rezaei likes this

Feel free to ask if you have any other questions.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events