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 Nov 6, 2024
1 parent d4bfc18 commit ae0965c
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 ae0965c

Please sign in to comment.