Merge pull request #12876 from supabase/fix-encodeURIComponent

Fix: og image links
This commit is contained in:
Isaiah Hamilton authored and GitHub committed 2023-03-20 16:25:09 -04:00
commit a78536d4bf
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ const Layout: FC<Props> = (props) => {
// page type, ie, Auth, Database, Storage etc
const ogPageType = asPath.split('/')[2]
// open graph image url constructor
const ogImageUrl = encodeURIComponent(
const ogImageUrl = encodeURI(
`https://obuldanrptloktxcffvn.functions.supabase.co/og-images?site=docs${
ogPageType ? `&type=${ogPageType}` : ''
}&title=${props.meta?.title}&description=${props.meta?.description}`