Skip to content

Commit

Permalink
Encode title for og (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri POSTOLOV authored Oct 13, 2023
1 parent dba64ed commit e8dedc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextra-theme/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function NextraLayout({ children, pageOpts, pageProps }: NextraTh
title,
images: frontMatter.socialImage
? [{ url: frontMatter.socialImage }]
: [{ url: `https://thegraph-docs-opengraph-image.the-guild.dev?title=${title}` }],
: [{ url: `https://thegraph-docs-opengraph-image.the-guild.dev?title=${encodeURI(title)}` }],
},
}
if (frontMatter.seo) {
Expand Down

0 comments on commit e8dedc3

Please sign in to comment.