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
‘HTML Link’ Macro
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");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The user indicates with labels they are on Confluence Cloud – Custom HTML and jquery is not an option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh good point, didn't see that. Not sure how it can be done globally without Javascript then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.