Skip to content

Commit ccfeca5

Browse files
authoredMar 4, 2025··
fix(router): set full parent path for route path on debug page (#1632)
1 parent 92c396e commit ccfeca5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎packages/router/src/lib/debug/debug.page.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ export default class DebugRoutesComponent {
131131
});
132132

133133
if (route.children) {
134-
this.traverseRoutes(route.children, route.path || '');
134+
const parentSegments = [parent, route.path];
135+
136+
const fullParentPath = parentSegments.filter((s) => !!s).join('/');
137+
this.traverseRoutes(route.children, fullParentPath);
135138
}
136139
});
137140
}

0 commit comments

Comments
 (0)
Please sign in to comment.