From 876bf2f427bf07ae62ee49a96d54602b29aa007f Mon Sep 17 00:00:00 2001 From: Jan K9f Date: Wed, 21 May 2025 08:55:23 +0200 Subject: [PATCH] fix: Fix bug where verification page doesnt redirect --- .../app/feature/auth/verify-email/verify-email.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/feature/auth/verify-email/verify-email.component.ts b/frontend/src/app/feature/auth/verify-email/verify-email.component.ts index 5f2814a..4ccbbaa 100644 --- a/frontend/src/app/feature/auth/verify-email/verify-email.component.ts +++ b/frontend/src/app/feature/auth/verify-email/verify-email.component.ts @@ -16,13 +16,13 @@ export class VerifyEmailComponent implements OnInit { const token = this.route.snapshot.queryParamMap.get('token'); if (!token) { - this.router.navigate(['']); + this.router.navigate(['/']); console.log('no token'); return; } this.authService.verifyEmail(token).subscribe(() => { - this.router.navigate([''], { + this.router.navigate(['/'], { queryParams: { login: true }, }); });