mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix back button navigation after visiting a community or collection page
(cherry picked from commit c7c1c0fc17
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
3f7d4ea874
commit
318ba11bc0
@@ -155,7 +155,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);
|
||||
|
Reference in New Issue
Block a user