fix route error

This commit is contained in:
AD2025
2025-11-13 23:24:44 +02:00
parent 41565aec12
commit 501de0103f
3 changed files with 36 additions and 1 deletions

View File

@@ -16,6 +16,13 @@ export const routes: Routes = [
title: 'Register - Quiz Platform'
},
// Guest routes
{
path: 'guest-welcome',
loadComponent: () => import('./shared/components/guest-welcome/guest-welcome').then(m => m.GuestWelcomeComponent),
title: 'Welcome - Quiz Platform'
},
// TODO: Add more routes as components are created
// - Home page (public)
// - Dashboard (protected with authGuard)

View File

@@ -142,7 +142,7 @@ export class LoginComponent {
this.guestService.startSession().subscribe({
next: () => {
this.isStartingGuestSession.set(false);
this.router.navigate(['/categories']);
this.router.navigate(['/guest-welcome']);
},
error: () => {
this.isStartingGuestSession.set(false);