From 4bde79f4da344b05167fedcee0b7ededd47e2e52 Mon Sep 17 00:00:00 2001 From: dahlalex Date: Mon, 18 Nov 2024 17:35:26 +0100 Subject: [PATCH] Update externalurlSeveralButtons.js --- src/controls/externalurl/externalurlSeveralButtons.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controls/externalurl/externalurlSeveralButtons.js b/src/controls/externalurl/externalurlSeveralButtons.js index dd6369c33..31c3f466c 100644 --- a/src/controls/externalurl/externalurlSeveralButtons.js +++ b/src/controls/externalurl/externalurlSeveralButtons.js @@ -15,6 +15,7 @@ const externalurlSeveralButtons = function externalurlSeveralButtons(options = { const buttons = []; const subButtons = []; const direction = options.direction; + const linkTarget = options.target || '_blank'; let containerElementcls; let subButtoncls; let subButtontooltipPlacement; @@ -100,7 +101,7 @@ const externalurlSeveralButtons = function externalurlSeveralButtons(options = { } else if (link.method === 'none') { replacedUrl = link.url; } - window.open(replacedUrl, '_blank'); + window.open(replacedUrl, linkTarget); } }); buttons.push(subButton);