Skip to content

Commit 4ec3743

Browse files
authored
fix(dgeni): breadcrumbs have relative paths (#3355)
1 parent ea2e75d commit 4ec3743

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/dgeni/src/processors/breadcrumb.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ export class BreadcrumbProcessor implements FilterableProcessor {
166166
break;
167167
}
168168

169-
return breadcrumbs;
169+
// ensure that breadcrumbs have absolute paths
170+
return breadcrumbs.map((breadcrumb) => {
171+
if (breadcrumb.path[0] !== '/') {
172+
breadcrumb.path = `/${breadcrumb.path}`;
173+
}
174+
return breadcrumb;
175+
});
170176
}
171177

172178
$process(docs: Array<ParentedDocument & KindedDocument>): Array<ParentedDocument & KindedDocument & BreadcrumbedDocument> {

0 commit comments

Comments
 (0)