diff --git a/searchPages/searchUtils/newSearchPage.component.html b/searchPages/searchUtils/newSearchPage.component.html index 808bd621..85a01181 100644 --- a/searchPages/searchUtils/newSearchPage.component.html +++ b/searchPages/searchUtils/newSearchPage.component.html @@ -8,7 +8,7 @@ - + add the value params[filter.filterId] = '"' + encodeURIComponent(value.id) + '"' ; } + if(params["page"] && params["page"]!="1"){ + params["page"]=1; + } return params; } } diff --git a/utils/rangeFilter/rangeFilter.component.ts b/utils/rangeFilter/rangeFilter.component.ts index 3167d3b7..c51146ff 100644 --- a/utils/rangeFilter/rangeFilter.component.ts +++ b/utils/rangeFilter/rangeFilter.component.ts @@ -76,6 +76,9 @@ export class RangeFilterComponent { }else{ delete params['year']; } + if(params["page"] && params["page"]!="1"){ + params["page"]=1; + } return params; } }