From a65c0a491e8ba9d6b7c79d29469a740b3cec62ea Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 12 Jul 2021 15:40:35 +0200 Subject: [PATCH] Links: Fixes issue with some links causing full page reload (#36631) (#36649) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 6c5d0db255c1427c685e7bbaa599e87064baf11b) Co-authored-by: Torkel Ödegaard --- public/app/core/navigation/patch/interceptLinkClicks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/navigation/patch/interceptLinkClicks.ts b/public/app/core/navigation/patch/interceptLinkClicks.ts index a7a3e6db78f..fb789bb44bf 100644 --- a/public/app/core/navigation/patch/interceptLinkClicks.ts +++ b/public/app/core/navigation/patch/interceptLinkClicks.ts @@ -24,7 +24,7 @@ export function interceptLinkClicks(e: MouseEvent) { // That is they where seen as being absolute from app root if (href[0] !== '/') { // if still contains protocol it's an absolute link to another domain or web application - if (href.indexOf('://')) { + if (href.indexOf('://') > 0) { window.location.href = href; return; } else {