fix route error
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user