Skip to content

Commit e8dedc3

Browse files
author
Dimitri POSTOLOV
authored
Encode title for og (#524)
1 parent dba64ed commit e8dedc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextra-theme/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default function NextraLayout({ children, pageOpts, pageProps }: NextraTh
134134
title,
135135
images: frontMatter.socialImage
136136
? [{ url: frontMatter.socialImage }]
137-
: [{ url: `https://thegraph-docs-opengraph-image.the-guild.dev?title=${title}` }],
137+
: [{ url: `https://thegraph-docs-opengraph-image.the-guild.dev?title=${encodeURI(title)}` }],
138138
},
139139
}
140140
if (frontMatter.seo) {

0 commit comments

Comments
 (0)