Skip to content

Commit

Permalink
fix(dgeni): breadcrumbs have relative paths (#3355)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Dec 5, 2024
1 parent ea2e75d commit 4ec3743
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/dgeni/src/processors/breadcrumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@ export class BreadcrumbProcessor implements FilterableProcessor {
break;
}

return breadcrumbs;
// ensure that breadcrumbs have absolute paths
return breadcrumbs.map((breadcrumb) => {
if (breadcrumb.path[0] !== '/') {
breadcrumb.path = `/${breadcrumb.path}`;
}
return breadcrumb;
});
}

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

0 comments on commit 4ec3743

Please sign in to comment.