fix back button navigation after visiting a community or collection page

This commit is contained in:
Jesiel Viana
2025-07-16 08:02:44 -03:00
parent 277154b4ed
commit c7c1c0fc17

View File

@@ -147,7 +147,7 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
]).subscribe(([navOptions, url]: [ComColPageNavOption[], string]) => {
for (const option of navOptions) {
if (url?.split('?')[0] === comColRoute && option.id === this.appConfig[this.contentType].defaultBrowseTab) {
void this.router.navigate([option.routerLink], { queryParams: option.params });
void this.router.navigate([option.routerLink], { queryParams: option.params, replaceUrl: true });
break;
} else if (option.routerLink === url?.split('?')[0]) {
this.currentOption$.next(option);