Forums

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

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 • 4 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 • 26 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 europe, early bird extension, conference discount, barcelona, hybrid event, AI teamwork, early bird pass, digital access, collaboration conference, atlassian events, register now, developer conference

1 week left to save on your Team '25 Europe pass

Still thinking about joining us for Team '25 Europe? Early bird has been extended for just one week! Now’s the time to lock in your lowest rate. Use code TEU25COMM-20 to save 20% at checkout. Hurry, this only lasts for 1 more week.

Learn more
AUG Leaders

Atlassian Community Events