Add missing route to Roadm UI
Change-Id: Iece3e2212e0a227efbc0b015f3826ca3e86b77f8
diff --git a/apps/roadm/web/roadm-gui/lib/roadm-gui-lib.module.ts b/apps/roadm/web/roadm-gui/lib/roadm-gui-lib.module.ts
index e9f2d91..ac23047 100644
--- a/apps/roadm/web/roadm-gui/lib/roadm-gui-lib.module.ts
+++ b/apps/roadm/web/roadm-gui/lib/roadm-gui-lib.module.ts
@@ -29,7 +29,9 @@
],
imports: [
RouterModule,
- RouterModule.forChild([{path: 'roadm-port-gui', component: RoadmPortComponent}]),
+ RouterModule.forChild([
+ {path: '', component: RoadmDeviceComponent},
+ {path: 'roadm-port-gui', component: RoadmPortComponent}]),
Gui2FwLibModule,
CommonModule,
FormsModule,
diff --git a/web/gui2/src/main/webapp/app/onos-routing.module.ts b/web/gui2/src/main/webapp/app/onos-routing.module.ts
index 3ea2cba..f5d9258 100644
--- a/web/gui2/src/main/webapp/app/onos-routing.module.ts
+++ b/web/gui2/src/main/webapp/app/onos-routing.module.ts
@@ -108,7 +108,7 @@
},
<Route>{
path: 'roadm-gui',
- pathMatch: 'full',
+ pathMatch: 'prefix',
loadChildren: () => import('../../../../../../apps/roadm/web/roadm-gui/lib/roadm-gui-lib.module').then(m => m.RoadmGuiLibModule)
},
<Route>{