From 15f6222d08f79a0a4b12f3dac3efa3b3ca6e522d Mon Sep 17 00:00:00 2001 From: Naced <53080488+NacedWang@users.noreply.github.com> Date: Wed, 14 Aug 2019 17:24:39 +0800 Subject: [PATCH] fix(auth routing): scene may cause 404 when direct to /auth , it shows the login page . Then click 'Register' to register page . It will cause 404 beacuse the routerLink of login.component.html is '../register' . --- src/app/app-routing.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index e6de7fe2..f5c23818 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -21,7 +21,8 @@ const routes: Routes = [ children: [ { path: '', - component: NbLoginComponent, + redirectTo: 'login', + pathMatch: 'full', }, { path: 'login',