fix(frontend): resolve published blog detail 404
This commit is contained in:
@@ -80,7 +80,7 @@ export default function Blog({
|
||||
) : (
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{posts.map((post) => (
|
||||
<Link key={post.id} to={`/blog/${post.slug}`}>
|
||||
<Link key={post.id} to={`/blog/${encodeURIComponent(post.slug)}`}>
|
||||
<Card className="h-full hover:shadow-lg transition-shadow">
|
||||
<CardHeader>
|
||||
<CardTitle className="line-clamp-2">{post.title}</CardTitle>
|
||||
|
||||
Reference in New Issue
Block a user