Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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?

6 answers

 

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 # people like this

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.

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.
Feb 09, 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.
Feb 09, 2017

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

Like # people like this

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events