Skip to content

Commit 3c76ae7

Browse files
author
Charlotte Gieltjes
committed
feat: slugs in relations.json are not relative paths
1 parent 27a8190 commit 3c76ae7

File tree

2 files changed

+231
-231
lines changed

2 files changed

+231
-231
lines changed

src/components/ComponentPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export const Related = ({ component }: ComponentPageSectionProps) => {
217217
{relatedComponents.map((relatedComponent, index) => (
218218
<>
219219
{relatedComponent.slug ? (
220-
<Link href={relatedComponent.slug}>{relatedComponent.name}</Link>
220+
<Link href={`/${relatedComponent.slug}/`}>{relatedComponent.name}</Link>
221221
) : (
222222
relatedComponent.name
223223
)}

0 commit comments

Comments
 (0)