Skip to content

Commit 978dabf

Browse files
authored
fix(breadcrumbs): use short-title for parents (#11180)
Before: - Glossary - MDN Web Docs Glossary: Definitions of Web-related terms > Abstraction After: - Glossary - Glossary > Abstraction
1 parent b791c07 commit 978dabf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: build/document-utils.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export function addBreadcrumbData(url, document) {
5656
if (parentDoc) {
5757
parents.unshift({
5858
uri: parentURL,
59-
title: transformTitle(parentDoc.metadata.title),
59+
title:
60+
parentDoc.metadata["short-title"] ||
61+
transformTitle(parentDoc.metadata.title),
6062
});
6163
}
6264
}

0 commit comments

Comments
 (0)