Skip to content

Commit 12e2241

Browse files
Fix href links in CategoryList
1 parent ccdd944 commit 12e2241

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/components/CategoryList.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ function displayItem(item: any) {
3232
switch (what) {
3333
case 'all_functions':
3434
const funcInfo = getFunctionInfo(item.data);
35-
return `<a href=${item.id}>${item.id}</a>
35+
return `<a href=/${item.id}>${item.id}</a>
3636
(<span class=${"side-"+funcInfo.type}>${funcInfo.typePretty}</span>)`;
3737
case 'all_events':
38-
return `<a href=${item.id}>${item.id}</a>
38+
return `<a href=/${item.id}>${item.id}</a>
3939
(<span class=${"side-"+item.data.type}>${getEventTypePretty(item.data.type)}-side</span>)`;
4040
case 'client_functions':
4141
case 'server_functions':
4242
case 'shared_functions':
4343
case 'client_events':
4444
case 'server_events':
45-
return `<a href=${item.id}>${item.id}</a>`;
45+
return `<a href=/${item.id}>${item.id}</a>`;
4646
}
4747
return '?';
4848
}

0 commit comments

Comments
 (0)