mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix dashboard/panel link in scripted dashboard
This commit is contained in:
parent
5b0585ac7f
commit
8ac47b4e24
@ -114,7 +114,7 @@ function (angular, _) {
|
||||
title: linkDef.title,
|
||||
icon: iconMap[linkDef.icon],
|
||||
tooltip: linkDef.tooltip,
|
||||
target: linkDef.targetBlank ? "_blank" : "",
|
||||
target: linkDef.targetBlank ? "_blank" : "_self",
|
||||
keepTime: linkDef.keepTime,
|
||||
includeVars: linkDef.includeVars,
|
||||
}]);
|
||||
|
@ -62,7 +62,7 @@ function (angular, kbn, _) {
|
||||
this.getPanelLinkAnchorInfo = function(link) {
|
||||
var info = {};
|
||||
if (link.type === 'absolute') {
|
||||
info.target = link.targetBlank ? '_blank' : '';
|
||||
info.target = link.targetBlank ? '_blank' : '_self';
|
||||
info.href = templateSrv.replace(link.url || '');
|
||||
info.title = templateSrv.replace(link.title || '');
|
||||
info.href += '?';
|
||||
|
Loading…
Reference in New Issue
Block a user