diff --git a/src/app/shared/mydspace-actions/mydspace-actions.ts b/src/app/shared/mydspace-actions/mydspace-actions.ts index 1a5ebbcc8c..73caf4f30c 100644 --- a/src/app/shared/mydspace-actions/mydspace-actions.ts +++ b/src/app/shared/mydspace-actions/mydspace-actions.ts @@ -107,15 +107,19 @@ export abstract class MyDSpaceActionsComponent this.requestService.removeByHrefSubstring(cachedHref)), - ).subscribe(() => this.router.navigateByUrl(url)); + ).subscribe(() => { + if (shouldNavigate) { + this.router.navigateByUrl(url); + } + }); } /**