From 4c514bb0b61c13bd200c99d349948051c2c1bba4 Mon Sep 17 00:00:00 2001 From: Michael Craig Date: Fri, 14 Apr 2023 08:21:57 -0700 Subject: [PATCH] encode ampersand to fix url --- .../js/external-search.module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node_modules/primo-explore-external-search/js/external-search.module.js b/node_modules/primo-explore-external-search/js/external-search.module.js index 26abccd..8b7d710 100644 --- a/node_modules/primo-explore-external-search/js/external-search.module.js +++ b/node_modules/primo-explore-external-search/js/external-search.module.js @@ -44,7 +44,7 @@ angular this.$onInit = function(){ { $scope.targets = searchTargets - let query = $location.search().query + let query = $location.search().query.replace('&','%26') let filter = $location.search().pfilter $scope.queries = Array.isArray(query) ? query : query ? [query] : false $scope.filters = Array.isArray(filter) ? filter : filter ? [filter] : false @@ -131,4 +131,4 @@ angular }) /** * End External Search - */ \ No newline at end of file + */