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 to open link in a new tab

This question is in reference to Atlassian Documentation: Links

How to open a web link in a new tab?

4 answers

Hello, you can ctrl+click a link to open it in a new tab

(facepalm)

Hi Tommaso,

These links show you how to force links to open i a new tab:

https://confluence.atlassian.com/confkb/how-to-force-links-to-open-in-a-new-window-213518072.html

https://confluence.atlassian.com/confkb/how-do-i-make-my-attachments-open-in-a-new-window-or-tab-313459830.html

As you're on the Cloud version you'll need to download an HTML macro for cloud if you want to do this; it is paid for but the pricing is very cheap.

Hello.

 

Without HTML or the source editor I solved it with a user macro.

I just entered the following code:

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

 

But: That affects ALL links on a page.

Can I somehow modify it so that only some links will be opened in a new page?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Introducing Confluence Cloud and Jira Software Cloud Premium

Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...

600 views 4 17
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