I have a route like this
const pipelinesRoutes: Routes = [
{
path: ':type',
component: CatalogComponent,
canActivate: [LoggedInGuard],
children: [
{
path: '',
component: CatalogContentComponent,
},
{
path: ':domain/:categoryId',
component: CatalogContentComponent,
},
],
},
{ path: '', redirectTo: 'skills', canActivate: [LoggedInGuard] },
];
Here i want to redirect my app to skills(:type) if no type is provided , it works fine on start, but once i refresh say having this url.
catalog/skills/technical
it redirect to
catalog/skills/skills/technical
:domainand:categoryIdcatalog/skills/technicalifskillsis the:typethen there is no path match fortechnicalas it only accepts:domain/:categoyId