diff --git a/src/Squidex/app/shared/services/auth.service.ts b/src/Squidex/app/shared/services/auth.service.ts index f02833058..c0af3fa4e 100644 --- a/src/Squidex/app/shared/services/auth.service.ts +++ b/src/Squidex/app/shared/services/auth.service.ts @@ -188,7 +188,7 @@ export class AuthService { private checkResponse(response: Observable) { return response.catch((error: Response) => { if (error.status === 401 || error.status === 404) { - this.loginRedirect(); + this.logoutRedirect(); } else if (error.status === 403) { this.router.navigate(['/404']); }