From e35c7f11432b3c4d551102ed9ccf2a442f713000 Mon Sep 17 00:00:00 2001 From: "Gantner, Florian Klaus" Date: Fri, 28 Apr 2023 11:16:36 +0200 Subject: [PATCH 1/2] fix authority when browsing back --- src/app/shared/browse-by/browse-by.component.spec.ts | 1 + src/app/shared/browse-by/browse-by.component.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/shared/browse-by/browse-by.component.spec.ts b/src/app/shared/browse-by/browse-by.component.spec.ts index 43a3910216f..4b4bc617c19 100644 --- a/src/app/shared/browse-by/browse-by.component.spec.ts +++ b/src/app/shared/browse-by/browse-by.component.spec.ts @@ -248,6 +248,7 @@ describe('BrowseByComponent', () => { comp.back(); expect(paginationService.updateRoute).toHaveBeenCalledWith(id, {page: 1}, { value: null, + authority: null, startsWith: null, [id + '.return']: null }); diff --git a/src/app/shared/browse-by/browse-by.component.ts b/src/app/shared/browse-by/browse-by.component.ts index 79edf390962..39d4aaec5b7 100644 --- a/src/app/shared/browse-by/browse-by.component.ts +++ b/src/app/shared/browse-by/browse-by.component.ts @@ -189,7 +189,7 @@ export class BrowseByComponent implements OnInit, OnDestroy { */ back() { const page = +this.previousPage$.value > 1 ? +this.previousPage$.value : 1; - this.paginationService.updateRoute(this.paginationConfig.id, {page: page}, {[this.paginationConfig.id + '.return']: null, value: null, startsWith: null}); + this.paginationService.updateRoute(this.paginationConfig.id, {page: page}, {[this.paginationConfig.id + '.return']: null, value: null, authority: null, startsWith: null}); } ngOnDestroy(): void { From e3992a24e4bc89b4ef9cf4509938a0258524b061 Mon Sep 17 00:00:00 2001 From: "Gantner, Florian Klaus" Date: Thu, 15 Jun 2023 10:47:40 +0200 Subject: [PATCH 2/2] reset authority value when browsing back --- src/app/shared/browse-by/browse-by.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/browse-by/browse-by.component.ts b/src/app/shared/browse-by/browse-by.component.ts index 0dc20033f85..0634ae8343f 100644 --- a/src/app/shared/browse-by/browse-by.component.ts +++ b/src/app/shared/browse-by/browse-by.component.ts @@ -141,7 +141,7 @@ export class BrowseByComponent implements OnInit, OnDestroy { */ back = () => { const page = +this.previousPage$.value > 1 ? +this.previousPage$.value : 1; - this.paginationService.updateRoute(this.paginationConfig.id, {page: page}, {[this.paginationConfig.id + '.return']: null, value: null, startsWith: null}); + this.paginationService.updateRoute(this.paginationConfig.id, {page: page}, {[this.paginationConfig.id + '.return']: null, value: null, authority: null, startsWith: null}); }; /**