We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d24bb80 + 6b3eb25 commit 8268ec4Copy full SHA for 8268ec4
src/pages/_utils.ts
@@ -365,9 +365,13 @@ export const generateJumpToState = async (
365
// Loop through each category and add entries to the jumpToLinks
366
for (const category of categories ?? []) {
367
const categoryLinks = [] as JumpToLink[];
368
+ const categoryLabel = getCategoryLabel(category);
369
categoryLinks.push({
- label: getCategoryLabel(category),
370
- url: `/${collectionType}#${category}`,
+ label: categoryLabel,
371
+ url:
372
+ collectionType === "examples"
373
+ ? `/${collectionType}/#${categoryLabel.toLowerCase()}`
374
+ : `/${collectionType}/#${category}`,
375
current: false,
376
});
377
0 commit comments