mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Also load the default tab when navigating using the breadcrumbs
This commit is contained in:
@@ -141,7 +141,9 @@ export class ComcolPageBrowseByComponent implements OnDestroy, OnInit {
|
||||
),
|
||||
]).subscribe(([navOptions, url]: [ComColPageNavOption[], string]) => {
|
||||
for (const option of navOptions) {
|
||||
if (option.routerLink === url?.split('?')[0]) {
|
||||
if (url?.split('?')[0].endsWith(`/${this.id}`) && option.id === this.appConfig[this.contentType].defaultBrowseTab) {
|
||||
void this.router.navigate([option.routerLink], { queryParams: option.params });
|
||||
} else if (option.routerLink === url?.split('?')[0]) {
|
||||
this.currentOption$.next(option);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user