frontend: Update routing to redirect to home component at root path
This commit is contained in:
parent
ac2e9a59f4
commit
0a8a0bb2fb
@ -92,5 +92,5 @@ export const baseRoutes: Routes = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Redirect all other routes to home
|
// Redirect all other routes to home
|
||||||
{ path: '**', redirectTo: 'home' }
|
{ path: '**', redirectTo: '' }
|
||||||
];
|
];
|
||||||
|
|||||||
@ -2,7 +2,4 @@ import { Routes } from '@angular/router';
|
|||||||
import { HomeComponent } from '@app/pages/home/home.component';
|
import { HomeComponent } from '@app/pages/home/home.component';
|
||||||
import { baseRoutes } from 'projects/shared-meet-components/src/public-api';
|
import { baseRoutes } from 'projects/shared-meet-components/src/public-api';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [{ path: '', component: HomeComponent }, ...baseRoutes];
|
||||||
{ path: 'home', component: HomeComponent, /*canActivate: [standaloneModeGuard]*/ },
|
|
||||||
...baseRoutes
|
|
||||||
];
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user