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

How to open link in a new tab

Tommaso_Vaccarella
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!
February 9, 2017

This question is in reference to Atlassian Documentation: Links

How to open a web link in a new tab?

6 answers

Chris Swinney
Contributor
February 4, 2022

 

TBH, this is not really a solution. What is required is to simply allow an editor of a Confluence page to select a target of a link, i.e. `_blank`

Like • 3 people like this
chintot
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!
October 24, 2023

This is good however, opening a new window is still different from opening a new tab.  The built-in macro is for opening a link in a new window. I also prefer that there is also one macro for opening a link in a new tab instead.

2 votes
Jiraconfluence Solutionmgm sIT October 23, 2018

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?

1 vote
Rob Woodgate
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.
February 9, 2017

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.

1 vote
QuentinB
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.
February 9, 2017

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

Dmitriy Kashkarov
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!
July 8, 2019

(facepalm)

Like • 24 people like this
0 votes
Lee Mandleberg
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!
February 9, 2022

didn't there use to be a checkbox for this simple functionality?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Confluence Events