fix: update logout navigation to use navigateByUrl for cleaner routing #5

Merged
rajukottedi merged 1 commits from task/popup-for-dynamic-form into develop 2026-02-15 20:43:55 +05:30
Showing only changes of commit 7d63845951 - Show all commits

View File

@ -111,7 +111,7 @@ export class AuthService {
this.http.post<void>(this.api('/api/v1/auth/logout'), {}).subscribe(); this.http.post<void>(this.api('/api/v1/auth/logout'), {}).subscribe();
this.accessToken = null; this.accessToken = null;
this.safeRemoveToken(); this.safeRemoveToken();
this.router.navigate(['/admin/login']); this.router.navigateByUrl('login');
} }
refreshToken(): Observable<RefreshTokenResponse> { refreshToken(): Observable<RefreshTokenResponse> {