mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Text Panel: Fixes issue with hash anchor links (#47980)
This commit is contained in:
parent
dbcaedac6c
commit
15ea6d559a
@ -27,6 +27,10 @@ export function interceptLinkClicks(e: MouseEvent) {
|
||||
if (href.indexOf('://') > 0 || href.indexOf('mailto:') === 0) {
|
||||
window.location.href = href;
|
||||
return;
|
||||
} else if (href.indexOf('#') === 0) {
|
||||
// If it is a hash click, update the hash instead of trying to update the history
|
||||
window.location.hash = href;
|
||||
return;
|
||||
} else {
|
||||
href = `/${href}`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user