diff --git a/packages/grafana-data/src/field/fieldOverrides.ts b/packages/grafana-data/src/field/fieldOverrides.ts index f3b248a5000..7247638d1d6 100644 --- a/packages/grafana-data/src/field/fieldOverrides.ts +++ b/packages/grafana-data/src/field/fieldOverrides.ts @@ -421,7 +421,7 @@ export const getLinksSupplier = if (href) { href = locationUtil.assureBaseUrl(href.replace(/\n/g, '')); - href = replaceVariables(href, dataLinkScopedVars, VariableFormatID.PercentEncode); + href = replaceVariables(href, dataLinkScopedVars, VariableFormatID.UriEncode); href = locationUtil.processUrl(href); } diff --git a/public/app/features/panel/panellinks/link_srv.ts b/public/app/features/panel/panellinks/link_srv.ts index 1d2037e8a98..538b4e4f1fb 100644 --- a/public/app/features/panel/panellinks/link_srv.ts +++ b/public/app/features/panel/panellinks/link_srv.ts @@ -305,7 +305,7 @@ export class LinkSrv implements LinkService { }; if (replaceVariables) { - info.href = replaceVariables(info.href, undefined, VariableFormatID.PercentEncode); + info.href = replaceVariables(info.href, undefined, VariableFormatID.UriEncode); info.title = replaceVariables(link.title); }