We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2b6c3e commit c341b38Copy full SHA for c341b38
1 file changed
src/app/shared/search/search-charts/search-chart/search-chart-filter/search-chart-filter.component.ts
@@ -90,6 +90,18 @@ export class SearchChartFilterComponent extends SearchFacetFilterComponent imple
90
}
91
queryParam[str[0]] = queryParam[str[0]] ? [...queryParam[str[0]], str[1]] : [str[1]];
92
});
93
+
94
+ if (this.currentUrl) {
95
+ const currentQueryParams = this.currentUrl.split('?')[1].split('&');
96
+ const pageParam = currentQueryParams.filter((param) => param.includes('page'));
97
+ if (pageParam.length > 0) {
98
+ const paramName = pageParam[0].split('=')[0];
99
+ queryParam[paramName] = [1];
100
+ }
101
+ } else {
102
+ queryParam['spc.page'] = [1];
103
104
105
this.router.navigate(this.getSearchLinkParts(), {
106
queryParams: queryParam,
107
queryParamsHandling: 'merge',
0 commit comments