keevo-components 1.5.216 → 1.5.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4691,14 +4691,27 @@ class BreadcrumbsService {
|
|
|
4691
4691
|
const path = route.routeConfig && route.routeConfig.path ? route.routeConfig.path : '';
|
|
4692
4692
|
const label = route.routeConfig && route.routeConfig.data ? route.routeConfig.data['breadcrumb'] : '';
|
|
4693
4693
|
if (path && label) {
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4694
|
+
if (url === '') {
|
|
4695
|
+
breadcrumbs.push({
|
|
4696
|
+
label: label,
|
|
4697
|
+
routerLink: `/${path}`,
|
|
4698
|
+
});
|
|
4699
|
+
}
|
|
4700
|
+
else {
|
|
4701
|
+
breadcrumbs.push({
|
|
4702
|
+
label: label,
|
|
4703
|
+
routerLink: `${url}/${path}`,
|
|
4704
|
+
});
|
|
4705
|
+
}
|
|
4698
4706
|
}
|
|
4699
4707
|
const nextRoute = route.firstChild;
|
|
4700
4708
|
if (nextRoute) {
|
|
4701
|
-
|
|
4709
|
+
if (url === '') {
|
|
4710
|
+
return this.parseRoute(nextRoute, path, breadcrumbs);
|
|
4711
|
+
}
|
|
4712
|
+
else {
|
|
4713
|
+
return this.parseRoute(nextRoute, `${url}/${path}`, breadcrumbs);
|
|
4714
|
+
}
|
|
4702
4715
|
}
|
|
4703
4716
|
return breadcrumbs;
|
|
4704
4717
|
}
|