Links: Fixes issue with some links causing full page reload (#36631) (#36649)

(cherry picked from commit 6c5d0db255)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)andTorkel Ödegaard authored and GitHub committed 2021-07-12 15:40:35 +02:00
1 parent fea410ebb1
commit a65c0a491e
1 file changed
+1 -1
@@ -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 {