Skip to content

Commit 77731af

Browse files
authored
Merge pull request #4550 from lareferencia/fix-back-button-navigation-community-collection
fix back button navigation after visiting a community or collection page
2 parents 67a17e4 + c7c1c0f commit 77731af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/comcol/comcol-page-browse-by/comcol-page-browse-by.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
147147
]).subscribe(([navOptions, url]: [ComColPageNavOption[], string]) => {
148148
for (const option of navOptions) {
149149
if (url?.split('?')[0] === comColRoute && option.id === this.appConfig[this.contentType].defaultBrowseTab) {
150-
void this.router.navigate([option.routerLink], { queryParams: option.params });
150+
void this.router.navigate([option.routerLink], { queryParams: option.params, replaceUrl: true });
151151
break;
152152
} else if (option.routerLink === url?.split('?')[0]) {
153153
this.currentOption$.next(option);

0 commit comments

Comments
 (0)