Merge pull request 'fix: update auth guard to redirect to login without admin prefix' (#3) from task/popup-for-dynamic-form into develop
Reviewed-on: #3
This commit is contained in:
commit
1147a5a10a
@ -16,5 +16,5 @@ export const authGuard: CanActivateFn = (route, state) => {
|
|||||||
|
|
||||||
return auth.currentToken
|
return auth.currentToken
|
||||||
? true
|
? true
|
||||||
: router.parseUrl(`/admin/login?returnUrl=${state.url}`);
|
: router.parseUrl(`login?returnUrl=${state.url}`);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user