mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
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' .
This commit is contained in:
parent
ede1b074f0
commit
15f6222d08
1 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,8 @@ const routes: Routes = [
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
component: NbLoginComponent,
|
redirectTo: 'login',
|
||||||
|
pathMatch: 'full',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'login',
|
path: 'login',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue