From f73360ee2764ce0f7d7530fe07989acc2350872e Mon Sep 17 00:00:00 2001 From: Bello Babakolo Date: Fri, 12 Jan 2024 15:11:09 +0100 Subject: [PATCH] Configure product routing --- src/app/app-routing.module.ts | 2 ++ src/app/features/products/products.module.ts | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 15fa57e..145e1d1 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -40,6 +40,8 @@ const routes: Routes = [ (m) => m.PrivacyPolicyModule ), }, + { path: '', redirectTo: '/products', pathMatch: 'full' }, // TODO CHANGE TO PRODUCTS + { path: '**', redirectTo: '/products' }, ]; @NgModule({ diff --git a/src/app/features/products/products.module.ts b/src/app/features/products/products.module.ts index b64091f..f6fce91 100644 --- a/src/app/features/products/products.module.ts +++ b/src/app/features/products/products.module.ts @@ -35,11 +35,7 @@ const vclModules = [ const routes: Routes = [ { - path: '', - component: ShoesComponent, - }, - { - path: 'shoes', + path: 'products', component: ShoesComponent, children: [ { @@ -78,7 +74,7 @@ const routes: Routes = [ ProductNavigationComponent, ProductRecommendComponent, ProductSizePickerComponent, - ProductZoomComponent + ProductZoomComponent, ], imports: [ CommonModule,