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)
  • Loading branch information
sanruiz committed Sep 30, 2022
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
Expand Up @@ -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
Expand Down

0 comments on commit fd6c907

Please sign in to comment.