Browse Source

fix(core): redirect user to child routes instead of module root route

pull/1607/head
TheDiaval 7 years ago
parent
commit
298ad367a3
  1. 2
      npm/ng-packs/packages/core/src/lib/components/dynamic-layout.component.ts

2
npm/ng-packs/packages/core/src/lib/components/dynamic-layout.component.ts

@ -54,7 +54,7 @@ function findLayout(segments: UrlSegment[], routes: ABP.FullRoute[]): eLayoutTyp
layout = route.layout;
}
if (route.children && route.children.length) {
if (route.children && route.children.length && segments.length > 1) {
const child = route.children.find(c => c.path === segments[1].path);
if (child.layout) {

Loading…
Cancel
Save