From 246997dbd918bafff7336199463a0bfe1e500bef Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Tue, 19 Feb 2019 14:44:30 -0800 Subject: [PATCH] FIX: an `` with a target of _blank wants a new window --- app/assets/javascripts/discourse/lib/intercept-click.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/intercept-click.js.es6 b/app/assets/javascripts/discourse/lib/intercept-click.js.es6 index 1fe999912f..31a3c4666d 100644 --- a/app/assets/javascripts/discourse/lib/intercept-click.js.es6 +++ b/app/assets/javascripts/discourse/lib/intercept-click.js.es6 @@ -6,7 +6,8 @@ export function wantsNewWindow(e) { e.shiftKey || e.metaKey || e.ctrlKey || - (e.button && e.button !== 0) + (e.button && e.button !== 0) || + (e.target && e.target.target === "_blank") ); }