Browse Source

Merge pull request #2361 from mtanda/fix_link

Fix dashboard/panel link in Scripted Dashboard
Torkel Ödegaard 10 years ago
parent
commit
39430e1cee

+ 1 - 1
public/app/features/dashlinks/module.js

@@ -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,
         }]);

+ 1 - 1
public/app/features/panellinks/linkSrv.js

@@ -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 += '?';