Revert "DataLinks: Encode variable params for data link URLs (#46100)" (#47763)

This reverts commit b47f5433d7.
This commit is contained in:
kay delaney
2022-04-20 10:15:36 +01:00
committed by GitHub
parent 1696a9abee
commit ff60f39e96
3 changed files with 5 additions and 72 deletions
@@ -1,6 +1,7 @@
import {
ApplyFieldOverrideOptions,
DataFrame,
DataLink,
DisplayProcessor,
DisplayValue,
DynamicConfigValue,
@@ -352,7 +353,7 @@ export const getLinksSupplier =
const timeRangeUrl = locationUtil.getTimeRangeUrlParams();
const { timeField } = getTimeField(frame);
return field.config.links.map((link) => {
return field.config.links.map((link: DataLink) => {
const variablesQuery = locationUtil.getVariablesUrlParams();
let dataFrameVars = {};
let valueVars = {};
@@ -438,7 +439,7 @@ export const getLinksSupplier =
}
let href = locationUtil.assureBaseUrl(link.url.replace(/\n/g, ''));
href = replaceVariables(href, variables, encodeURIComponent);
href = replaceVariables(href, variables);
href = locationUtil.processUrl(href);
const info: LinkModel<Field> = {