Text Panel: Fixes mailto links not working (#47025) (#47109)

This commit is contained in:
Grot (@grafanabot)
2022-03-31 10:15:23 +01:00
committed by GitHub
parent 4ced7b959e
commit 839485a4b6
@@ -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 {