mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 06:23:03 +00:00
fixed issue with refresh page when user is already authenticated
This commit is contained in:
@@ -60,7 +60,8 @@ export class AuthService {
|
|||||||
// and is not the login route, clear redirect url and messages
|
// and is not the login route, clear redirect url and messages
|
||||||
const routeUrl$ = this.store.pipe(
|
const routeUrl$ = this.store.pipe(
|
||||||
select(routerStateSelector),
|
select(routerStateSelector),
|
||||||
filter((routerState: RouterReducerState) => isNotUndefined(routerState) && isNotUndefined(routerState.state)),
|
filter((routerState: RouterReducerState) => isNotUndefined(routerState)
|
||||||
|
&& isNotUndefined(routerState.state) && isNotEmpty(routerState.state.url)),
|
||||||
filter((routerState: RouterReducerState) => !this.isLoginRoute(routerState.state.url)),
|
filter((routerState: RouterReducerState) => !this.isLoginRoute(routerState.state.url)),
|
||||||
map((routerState: RouterReducerState) => routerState.state.url)
|
map((routerState: RouterReducerState) => routerState.state.url)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user