Hotfix(TSK-880): Fixed routing to 'no-role' by adding a path to app-routing
This commit is contained in:
parent
352d0d67cd
commit
d7cfd31b05
|
@ -8,43 +8,47 @@ import { HistoryGuard } from './guards/history.guard';
|
|||
import { NoAccessComponent } from './components/no-access/no-access.component';
|
||||
|
||||
const appRoutes: Routes = [
|
||||
{
|
||||
path: 'taskana',
|
||||
children: [
|
||||
{
|
||||
canActivate: [BusinessAdminGuard],
|
||||
path: 'administration',
|
||||
loadChildren: './administration/administration.module#AdministrationModule',
|
||||
},
|
||||
{
|
||||
canActivate: [MonitorGuard],
|
||||
path: 'monitor',
|
||||
loadChildren: './monitor/monitor.module#MonitorModule',
|
||||
},
|
||||
{
|
||||
canActivate: [UserGuard],
|
||||
path: 'workplace',
|
||||
loadChildren: './workplace/workplace.module#WorkplaceModule'
|
||||
},
|
||||
{
|
||||
canActivate: [HistoryGuard],
|
||||
path: 'history',
|
||||
loadChildren: './history/history.module#HistoryModule'
|
||||
},
|
||||
{
|
||||
path: 'no-role',
|
||||
component: NoAccessComponent
|
||||
},
|
||||
{
|
||||
path: 'administration',
|
||||
redirectTo: 'administration/workbaskets',
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
redirectTo: 'workplace'
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'taskana',
|
||||
children: [
|
||||
{
|
||||
canActivate: [BusinessAdminGuard],
|
||||
path: 'administration',
|
||||
loadChildren: './administration/administration.module#AdministrationModule',
|
||||
},
|
||||
{
|
||||
canActivate: [MonitorGuard],
|
||||
path: 'monitor',
|
||||
loadChildren: './monitor/monitor.module#MonitorModule',
|
||||
},
|
||||
{
|
||||
canActivate: [UserGuard],
|
||||
path: 'workplace',
|
||||
loadChildren: './workplace/workplace.module#WorkplaceModule'
|
||||
},
|
||||
{
|
||||
canActivate: [HistoryGuard],
|
||||
path: 'history',
|
||||
loadChildren: './history/history.module#HistoryModule'
|
||||
},
|
||||
{
|
||||
path: 'no-role',
|
||||
component: NoAccessComponent
|
||||
},
|
||||
{
|
||||
path: 'administration',
|
||||
redirectTo: 'administration/workbaskets',
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
redirectTo: 'workplace'
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'no-role',
|
||||
component: NoAccessComponent
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
redirectTo: 'taskana/workplace'
|
||||
|
|
Loading…
Reference in New Issue