diff --git a/src/app/auth/auth.service.ts b/src/app/auth/auth.service.ts index 1b62437..49b8b2c 100644 --- a/src/app/auth/auth.service.ts +++ b/src/app/auth/auth.service.ts @@ -111,7 +111,7 @@ export class AuthService { this.http.post(this.api('/api/v1/auth/logout'), {}).subscribe(); this.accessToken = null; this.safeRemoveToken(); - this.router.navigate(['/admin/login']); + this.router.navigateByUrl('login'); } refreshToken(): Observable {