From 4c9a23c547a2682486fd82100b9de6ea2fff26ab Mon Sep 17 00:00:00 2001 From: jank Date: Wed, 3 Sep 2025 08:57:50 +0200 Subject: [PATCH] 404 --- src/app/app.routes.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 874973d..ee8aad5 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,5 +1,6 @@ import { Routes } from '@angular/router'; import { authGuard } from './service/auth.guard'; +import NotFoundComponent from './component/not-found/not-found.component'; export const routes: Routes = [ { @@ -32,8 +33,12 @@ export const routes: Routes = [ ], canActivate: [authGuard], }, + { + path: '404', + component: NotFoundComponent, + }, { path: '**', - loadComponent: () => import('./component/not-found/not-found.component'), + redirectTo: '404', }, ];