Skip to content

Commit c7c1c0f

Browse files
committed
fix back button navigation after visiting a community or collection page
1 parent 277154b commit c7c1c0f

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)