From 86b92067433904cdb9c6d66a5b2fc37877053a2d Mon Sep 17 00:00:00 2001 From: Neil MacDougall Date: Tue, 16 Jul 2024 13:37:00 +0100 Subject: [PATCH] Ensure detected links open in a new blank tab --- lib/shared/addon/helpers/linkify.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/shared/addon/helpers/linkify.js b/lib/shared/addon/helpers/linkify.js index 4e95f54b52..871731df0c 100644 --- a/lib/shared/addon/helpers/linkify.js +++ b/lib/shared/addon/helpers/linkify.js @@ -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' });