Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

encode uri image

Blue Mouse57d883ebbd4f
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index f91341b37..a984372f6 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -403,7 +403,7 @@ export const isDevelopment = !NODE_ENV || NODE_ENV === 'development'
export const getOgImageUrl = (title: string) => {
const apiUrl = API_URL.slice(0, -1)
- return `${apiUrl}/v1/og-image?title=${title}`
+ return `${apiUrl}/v1/og-image?title=${encodeURIComponent(title)}`
}
// Cookies