Skip to content

Commit b05467f

Browse files
committed
fix: correct usage of Link
1 parent e1b9ec4 commit b05467f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/routes/_libraries/blog.index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function BlogIndex() {
6464
return (
6565
<Link
6666
key={path}
67-
to={`${path}`}
67+
to="/blog/$"
68+
params={{ _splat: path }}
6869
className={`flex flex-col gap-4 justify-between
6970
border-2 border-transparent rounded-lg p-4 md:p-8
7071
transition-all bg-white/100 dark:bg-gray-800

0 commit comments

Comments
 (0)