Hi Atlassian,
We want to insert links to external websites in my page and have them open up in a new window. (It's not just ctrl+click).
We want all links to open in a new tab, window. Please support us.My Confluence 6.0.0-OD-2016.12.2-1113.
Thanks so much,Chi
Hi,
You can add some javascript to apply the target="_blank" attribute to all links so that they open up in a new window. If you want to target only links that lead to external sites, you can use the class ".external-link" which confluence applies to all links that are external.
For example, add something like this to the custom HTML section in the admin area:
AJS.$(".external-link").attr("target", "_blank");
The user indicates with labels they are on Confluence Cloud – Custom HTML and jquery is not an option.
Oh good point, didn't see that. Not sure how it can be done globally without Javascript then.
I also don't know of any way to do it in cloud. So you might want to vote for this: https://jira.atlassian.com/browse/JRA-9380
‘HTML Link’ Macro
http://www.brikit.com/display/documentation/HTML+Link+Macro
It looks like you're new here. Sign in or register to get started.