Fix for #10078: symbol "&" is not escaped (#10137)

Fix for #10078: Render value as link in Table panel: ampersand symbol "&" is not escaped in link URL, resulting URL is wrong.
This commit is contained in:
Angrite
2018-05-08 16:47:09 +03:00
committed by Torkel Ödegaard
parent 10f934d287
commit e52aceeaba

View File

@@ -247,7 +247,7 @@ export class TableRenderer {
var scopedVars = this.renderRowVariables(rowIndex);
scopedVars['__cell'] = { value: value };
var cellLink = this.templateSrv.replace(column.style.linkUrl, scopedVars);
var cellLink = this.templateSrv.replace(column.style.linkUrl, scopedVars, encodeURIComponent);
var cellLinkTooltip = this.templateSrv.replace(column.style.linkTooltip, scopedVars);
var cellTarget = column.style.linkTargetBlank ? '_blank' : '';