Skip to content

Commit

Permalink
fix(breadcrumbs): use short-title for parents (#11180)
Browse files Browse the repository at this point in the history
Before:
- Glossary
- MDN Web Docs Glossary: Definitions of Web-related terms > Abstraction

After:
- Glossary
- Glossary > Abstraction
  • Loading branch information
caugner authored May 31, 2024
1 parent b791c07 commit 978dabf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/document-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export function addBreadcrumbData(url, document) {
if (parentDoc) {
parents.unshift({
uri: parentURL,
title: transformTitle(parentDoc.metadata.title),
title:
parentDoc.metadata["short-title"] ||
transformTitle(parentDoc.metadata.title),
});
}
}
Expand Down

0 comments on commit 978dabf

Please sign in to comment.