From 0e93fe7e07a126362ff92bac1f910e22662f84bb Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Thu, 31 Mar 2022 10:00:33 +0100 Subject: [PATCH] Text Panel: Fixes mailto links not working (#47025) --- public/app/core/navigation/patch/interceptLinkClicks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/core/navigation/patch/interceptLinkClicks.ts b/public/app/core/navigation/patch/interceptLinkClicks.ts index fb789bb44bf..f7381447e12 100644 --- a/public/app/core/navigation/patch/interceptLinkClicks.ts +++ b/public/app/core/navigation/patch/interceptLinkClicks.ts @@ -23,8 +23,8 @@ export function interceptLinkClicks(e: MouseEvent) { // Make sure external links are handled correctly // 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('://') > 0) { + // if still contains protocol or is a mailto link, it's an absolute link to another domain or web application + if (href.indexOf('://') > 0 || href.indexOf('mailto:') === 0) { window.location.href = href; return; } else {