Skip to content

Commit dc5bc3f

Browse files
authored
Fix Prop href did not match error (vercel#27183)
Resolve Prop `href` did not match error.
1 parent 1d08687 commit dc5bc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cms-wordpress/components/cover-image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function CoverImage({ title, coverImage, slug }) {
1717
return (
1818
<div className="sm:mx-0">
1919
{slug ? (
20-
<Link href={slug}>
20+
<Link href={`/posts/${slug}`}>
2121
<a aria-label={title}>{image}</a>
2222
</Link>
2323
) : (

0 commit comments

Comments
 (0)