From f157ebf2c4866de64ec8c301ff6c177d68e548e1 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 15 Oct 2020 11:46:16 +0200 Subject: [PATCH] honor _blank --- static/js/utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index f5d9590f..a94bed6c 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -375,7 +375,11 @@ pandora.clickLink = function(e, selectEmbed) { if (match) { (selectEmbed || pandora.$ui.textPanel.selectEmbed)(parseInt(match[1])); } else { - pandora.openURL(e.target.href); + if (e.target.target == '_blank') { + pandora.openLink(e.target.href); + } else { + pandora.openURL(e.target.href); + } } };