Skip to content

Commit 4686e0c

Browse files
committed
fix: wrong href
1 parent d00309d commit 4686e0c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎frontend/main/src/components/RecentPostsList.tsx‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ export default function RecentPostsList({
2323
}
2424
`}
2525
>
26-
<ActiveLink
27-
href={
28-
PostType.course
29-
? `/course/${post.slug}`
30-
: `/${post._type}/${post.slug}`
31-
}
32-
>
26+
<ActiveLink href={`/${post._type}/${post.slug}`}>
3327
<a className="no-underline border-none hover:text-basics-50 dark:hover:text-basics-50">
3428
{post.title}
3529
</a>

0 commit comments

Comments
 (0)