Skip to content

Commit

Permalink
Fix: [slug].tsx in wordpress example (#41074)
Browse files Browse the repository at this point in the history
Fixing the image URL in the meta property og:image

<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->
## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
sanruiz authored Sep 30, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 3b34602 commit fd6c907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cms-wordpress/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ export default function Post({ post, posts, preview }) {
</title>
<meta
property="og:image"
content={post.featuredImage?.sourceUrl}
content={post.featuredImage?.node.sourceUrl}
/>
</Head>
<PostHeader

0 comments on commit fd6c907

Please sign in to comment.