diff --git a/tools/dgeni/src/processors/breadcrumb.ts b/tools/dgeni/src/processors/breadcrumb.ts index 80e70b1cbc..dbeced1e64 100644 --- a/tools/dgeni/src/processors/breadcrumb.ts +++ b/tools/dgeni/src/processors/breadcrumb.ts @@ -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): Array {