diff --git a/src/project/types/website/website-navigation.ts b/src/project/types/website/website-navigation.ts index ee655c0ca9..e54a3ffdd1 100644 --- a/src/project/types/website/website-navigation.ts +++ b/src/project/types/website/website-navigation.ts @@ -543,9 +543,11 @@ function navigationHtmlPostprocessor( ".breadcrumb-item a", ]; for (const sel of sels) { - const el = doc.querySelector(sel); - if (el) { - removeChapterNumber(el); + const nodes = doc.querySelectorAll(sel); + if (nodes !== null) { + for (const node of nodes) { + removeChapterNumber(node as Element); + } } } }