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.
1 parent 5fd71ad commit 6b3eb25Copy full SHA for 6b3eb25
src/pages/_utils.ts
@@ -365,12 +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
+ label: categoryLabel,
371
url:
372
collectionType === "examples"
- ? `/${collectionType}#${getCategoryLabel(category).toLocaleLowerCase()}`
373
- : `/${collectionType}#${category}`,
+ ? `/${collectionType}/#${categoryLabel.toLowerCase()}`
374
+ : `/${collectionType}/#${category}`,
375
current: false,
376
});
377
0 commit comments