Ensure detected links open in a new blank tab

This commit is contained in:
Neil MacDougall 2024-07-16 13:37:00 +01:00
parent d4bfc18f05
commit ae0965cada
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ export function linkify(params) {
content = Ember.Handlebars.Utils.escapeExpression(content);
content = linkifyStr(content, {
attributes: { rel: 'nofollow noreferrer' },
attributes: {
rel: 'nofollow noreferrer',
target: '_blank',
},
defaultProtocol: 'https'
});