Skip to content

Commit 53562e5

Browse files
committed
Also load the default tab when navigating using the breadcrumbs
1 parent 5d4006f commit 53562e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
141141
),
142142
]).subscribe(([navOptions, url]: [ComColPageNavOption[], string]) => {
143143
for (const option of navOptions) {
144-
if (option.routerLink === url?.split('?')[0]) {
144+
if (url?.split('?')[0].endsWith(`/${this.id}`) && option.id === this.appConfig[this.contentType].defaultBrowseTab) {
145+
void this.router.navigate([option.routerLink], { queryParams: option.params });
146+
} else if (option.routerLink === url?.split('?')[0]) {
145147
this.currentOption$.next(option);
146148
}
147149
}

0 commit comments

Comments
 (0)