Forums

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

When linking out to a website, is it possible to set the link to open in a new browser tab?

Julie Odano
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!
March 23, 2018

I am adding an external website link to a confluence page. When a user clicks on the link, I want the link to open up in a new browser tab. Is that possible?

1 answer

0 votes
Guilherme V.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 23, 2018

You can use a script:

  • Go to the General Configuration page.
  • Search for the "Custom HTML" option on the left-side panel.
  • Inser the following in the "At end of the HEAD" field:
  • <script>
    jQuery(document).ready(function() {
    jQuery(".external-link").attr("target", "_blank");
    });
    </script>
  • Save the changes and check the results.

This should only work for external links. All links pointing to Confluence pages won't be affected. More in https://confluence.atlassian.com/confkb/how-to-force-links-to-open-in-a-new-window-213518072.html.

(i) Google Chrome opened all external links in a new tab(for me).

Sarah Lazareff
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!
March 26, 2018

I don't see 'Custom HTML' anywhere on the page, or in the navigation. Is this option available in the new design? Or is it not available for Jira/Confluence Cloud? It looks like there's an open feature request for this: https://jira.atlassian.com/browse/CONFCLOUD-11194

 

Nic Brough -Adaptavist-
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.
March 26, 2018

It's not the "new design".  Cloud has never allowed custom html.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events