Skip to content

Commit

Permalink
Ensure detected links open in a new blank tab
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Jul 16, 2024
1 parent e3b6cff commit 86b9206
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/shared/addon/helpers/linkify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});

Expand Down

0 comments on commit 86b9206

Please sign in to comment.