Skip to content

Commit

Permalink
fix: wrong url
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-i-todorov committed Jan 2, 2024
1 parent 2f8c1f9 commit 20374d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ export default function Index() {
new Date(posts[0].createdAt),
).toUpperCase()} AGO`}</span>
</div>
<Link to={`/articles/${posts[0].category.slug}/${posts[0].id}`}>
<Link
to={`/articles/${posts[0].category.slug}/${posts[0].slug}`}
>
<h2 className="text-xl font-bold text-gray-50">
{posts[0].title}
</h2>
Expand Down

0 comments on commit 20374d2

Please sign in to comment.