Parent component: App
@RouteConfig([
{
path: '...',
name: 'Home',
component: HomeCmp
},
{
path: '/404',
name: 'NotFound',
component: Error404Cmp
},
{
path: '/*path',
redirectTo: ['NotFound']
}
])
Home component: Home
@RouteConfig([
{
path: '',
name: 'ItemsList',
component: itemsListCmp,
useAsDefault: true
},
{
path: 'item/:id/',
name: 'ItemInfo',
component: itemInfoCmp
}
])
when I'm redirecting to ItemInfo path in url I have next:
http://localhost:9000/#//item/1
Why in url double slash "#//"? How can I fix it and got: http://localhost:9000/#/item/1?
Thanks.