mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Text Panel: Fixes mailto links not working (#47025)
This commit is contained in:
parent
79769132c0
commit
0e93fe7e07
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user