diff --git a/src/app/home/top-level-community-list/top-level-community-list.component.html b/src/app/home/top-level-community-list/top-level-community-list.component.html index 043239e766..625cb5118d 100644 --- a/src/app/home/top-level-community-list/top-level-community-list.component.html +++ b/src/app/home/top-level-community-list/top-level-community-list.component.html @@ -2,7 +2,7 @@

{{'home.top-level-communities.head' | translate}}

{{'home.top-level-communities.help' | translate}}

x == pageSize); if (!isNumeric(page) || !filteredPageSize) { - let filteredPage = isNumeric(page) ? page : this.currentPage; - filteredPageSize = (filteredPageSize) ? filteredPageSize : this.pageSize; - this.router.navigate([{ + let filteredPage = isNumeric(page) ? page : this.currentPage; + filteredPageSize = (filteredPageSize) ? filteredPageSize : this.pageSize; + this.router.navigate([], { + queryParams: { pageId: this.id, page: filteredPage, pageSize: filteredPageSize, sortDirection: sortDirection, sortField: sortField - }]); + } + } + ); } else { // (+) converts string to a number this.currentPage = +page;