Skip to content

Commit 5fd71ad

Browse files
committed
The rules after # in the jumpTo link on the example detail page were different from the rules on the parent page.
This has been corrected. Before #586 was addressed, there was no problem in English. After applying #586, the problem was discovered because # and after were created with different rules.
1 parent d24bb80 commit 5fd71ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pages/_utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,10 @@ export const generateJumpToState = async (
367367
const categoryLinks = [] as JumpToLink[];
368368
categoryLinks.push({
369369
label: getCategoryLabel(category),
370-
url: `/${collectionType}#${category}`,
370+
url:
371+
collectionType === "examples"
372+
? `/${collectionType}#${getCategoryLabel(category).toLocaleLowerCase()}`
373+
: `/${collectionType}#${category}`,
371374
current: false,
372375
});
373376

0 commit comments

Comments
 (0)