From 2b454484230889d74ee77efc09e66cb832ec2b7f Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 4 May 2021 21:10:21 +0200 Subject: [PATCH] Fixed 404 error on opening bogus path. --- frontend/src/app/app-routing.module.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 2a2ff84..84eecd1 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -38,6 +38,11 @@ const routes: Routes = [ component: EditierenComponent, canActivate: [AuthGuardService] }, + { + path: '**', + component: LoginComponent, + canActivate: [UnAuthGuardService] + }, ]; @NgModule({