From 25053f5d84e0c2c26dad98fc1aa4d9abfa10c29a Mon Sep 17 00:00:00 2001 From: Argiro Kokogiannaki Date: Mon, 21 Sep 2020 12:51:37 +0000 Subject: [PATCH] [Monitor Dashboard|Trunk] AdminDashboard Guard: correct query params for user nfo page git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59443 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/utils/adminDashboard.guard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/utils/adminDashboard.guard.ts b/src/app/utils/adminDashboard.guard.ts index 48d85d9..149db75 100644 --- a/src/app/utils/adminDashboard.guard.ts +++ b/src/app/utils/adminDashboard.guard.ts @@ -25,11 +25,11 @@ export class AdminDashboardGuard implements CanActivate, CanLoad { return (Session.isPortalAdministrator(user) || Session.isCommunityCurator(user) || Session.isMonitorCurator(user)); })); obs.pipe(filter(isLoggedIn => !isLoggedIn)).subscribe(() => { - this.router.navigate(['/user-info'], {queryParams: {'errorCode': LoginErrorCodes.NOT_ADMIN, path}}); + this.router.navigate(['/user-info'], {queryParams: {'errorCode': LoginErrorCodes.NOT_ADMIN, 'redirectUrl':path}}); }); return obs; } else { - this.router.navigate(['/user-info'], {queryParams: {'errorCode': LoginErrorCodes.NOT_LOGIN, path}}); + this.router.navigate(['/user-info'], {queryParams: {'errorCode': LoginErrorCodes.NOT_LOGIN, 'redirectUrl':path}}); return false; } }