Skip to content

Commit 84f449d

Browse files
authored
Merge branch 'main' into cc
2 parents 70b72b3 + 8268ec4 commit 84f449d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/_utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,13 @@ export const generateJumpToState = async (
365365
// Loop through each category and add entries to the jumpToLinks
366366
for (const category of categories ?? []) {
367367
const categoryLinks = [] as JumpToLink[];
368+
const categoryLabel = getCategoryLabel(category);
368369
categoryLinks.push({
369-
label: getCategoryLabel(category),
370-
url: `/${collectionType}#${category}`,
370+
label: categoryLabel,
371+
url:
372+
collectionType === "examples"
373+
? `/${collectionType}/#${categoryLabel.toLowerCase()}`
374+
: `/${collectionType}/#${category}`,
371375
current: false,
372376
});
373377

0 commit comments

Comments
 (0)