From 0e027eb0370e144076a0dce2e95b7c012e171665 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Mon, 19 Dec 2022 09:26:46 +0100 Subject: [PATCH] fixed a bug with pagination --- .../src/main/resources/templates/dsm.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dnet-is-application/src/main/resources/templates/dsm.html b/apps/dnet-is-application/src/main/resources/templates/dsm.html index 9d09148e..276ba4cd 100644 --- a/apps/dnet-is-application/src/main/resources/templates/dsm.html +++ b/apps/dnet-is-application/src/main/resources/templates/dsm.html @@ -50,8 +50,8 @@ } $scope.search = function(field, value) { - var path = "/results/"; - if (field) { path += encodeURIComponent(field); } + var path = "/results"; + if (field) { path += '/' + encodeURIComponent(field); } path += '/0/' + pageSize(); $timeout(function() { @@ -86,8 +86,8 @@ $scope.gotoPage = function(page) { $scope.results = []; - var path = "/results/"; - if ($scope.field) { path += encodeURIComponent($scope.field); } + var path = "/results"; + if ($scope.field) { path += '/' + encodeURIComponent($scope.field); } path += '/' + page + '/' + $scope.pageSize; $location.path(path).search('value', $scope.value); }