From 0821edc1503ff87f548412bdc43d8c749e54fb5d Mon Sep 17 00:00:00 2001 From: mpetrov Date: Tue, 15 Oct 2024 17:22:57 +0300 Subject: [PATCH] refactoring --- .../home/pages/gateways/gateways-routing.module.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/gateways/gateways-routing.module.ts b/ui-ngx/src/app/modules/home/pages/gateways/gateways-routing.module.ts index f2c3c951cd..f768d46b91 100644 --- a/ui-ngx/src/app/modules/home/pages/gateways/gateways-routing.module.ts +++ b/ui-ngx/src/app/modules/home/pages/gateways/gateways-routing.module.ts @@ -33,7 +33,7 @@ export const gatewaysDashboardResolver: ResolveFn = ( export const gatewaysRoutes: Routes = [ { - path: 'entities/gateways', + path: 'gateways', component: DashboardViewComponent, data: { auth: [Authority.TENANT_ADMIN], @@ -48,8 +48,16 @@ export const gatewaysRoutes: Routes = [ } ]; +const routes: Routes = [ + { + path: 'gateways', + pathMatch: 'full', + redirectTo: '/entities/gateways' + }, +]; + @NgModule({ - imports: [RouterModule.forChild(gatewaysRoutes)], + imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class GatewaysRoutingModule { }