Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

537 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you