Forums

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

Open all external links in a new window/tab

Michel Hoogervorst April 21, 2016

We want our external links to open in a new window or tab.

This article explains how to do this, but it's only working for links in a page. It's not working for external links in our space shortcuts.

I've found that external links in a page have the class 'external-link' like the article suggests, but the links in the space shortcuts have the class 'external_link' with an underscore instead of a dash. Even if I replace the dash with an underscore the link in the space shortcuts is opened in the same window anyway.

Is there a way to make external links in the space shortcuts open in target _blank as well?

1 answer

0 votes
Sharon Hinde
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.
April 22, 2016

Hi,

there is a free Confluence add-on that could help you do this https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.externallinks/server/overview

Sharon

Michel Hoogervorst April 24, 2016

The article points to that plugin as well but we would like to solve it without adding just another plugin. Is it not possible to do this with a simple piece of javascript?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events