Skip to content

Commit

Permalink
Encode filter part of the URI for context
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed May 12, 2020
1 parent a3f9b15 commit 4164426
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,17 @@ export function createTableRowDirective($compile: ng.ICompileService, $httpParam
const globalFilters: any = getServices().filterManager.getGlobalFilters();
const appFilters: any = getServices().filterManager.getAppFilters();
const hash = $httpParamSerializer({
_g: rison.encode({
filters: globalFilters || [],
}),
_a: rison.encode({
columns: $scope.columns,
filters: (appFilters || []).map(esFilters.disableFilter),
}),
_g: encodeURI(
rison.encode({
filters: globalFilters || [],
})
),
_a: encodeURI(
rison.encode({
columns: $scope.columns,
filters: (appFilters || []).map(esFilters.disableFilter),
})
),
});

return `${path}?${hash}`;
Expand Down

0 comments on commit 4164426

Please sign in to comment.