Skip to content

Commit

Permalink
Fixed Og Image (#901)
Browse files Browse the repository at this point in the history
### Description
Seems Like OG Image is not working on the recent blog example by lee
rob.

### Demo URL

### Type of Change

- [ ] New Example
- [ X] Example updates (Bug fixes, new features, etc.)
- [ ] Other (changes to the codebase, but not to examples)

### New Example Checklist

- [ ] 🛫 `npm run new-example` was used to create the example
- [ ] 📚 The template wasn't used but I carefuly read the [Adding a new
example](https://github.com/vercel/examples#adding-a-new-example) steps
and implemented them in the example
- [ ] 📱 Is it responsive? Are mobile and tablets considered?
  • Loading branch information
syedsadiqali authored Apr 9, 2024
1 parent 81d8640 commit 602c9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/blog/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function generateMetadata({ params }) {
summary: description,
image,
} = post.metadata
let ogImage = image ? image : `/og?title=${encodeURIComponent(title)}`
let ogImage = image ? image : `${baseUrl}/og?title=${encodeURIComponent(title)}`

return {
title,
Expand Down

0 comments on commit 602c9e9

Please sign in to comment.