diff --git a/server/index.ts b/server/index.ts index 4a9c645..f122956 100644 --- a/server/index.ts +++ b/server/index.ts @@ -77,7 +77,7 @@ if (isProduction) { app.use(express.static(clientPath)); // Helper function to generate OG tags HTML - function generateOgTags(baseUrl: string, pageUrl: string, title: string, description: string, ogImageUrl: string | null): string { + function generateOgTags(pageUrl: string, title: string, description: string, ogImageUrl: string | null): string { return ` @@ -116,7 +116,7 @@ if (isProduction) { ogImageUrl = `${baseUrl}${ogImageUrl}`; } - const ogTags = generateOgTags(baseUrl, pageUrl, title, description, ogImageUrl); + const ogTags = generateOgTags(pageUrl, title, description, ogImageUrl); // Insert OG tags before html = html.replace('', `${ogTags}`); @@ -162,7 +162,7 @@ if (isProduction) { ogImageUrl = `${baseUrl}${ogImageUrl}`; } - const ogTags = generateOgTags(baseUrl, pageUrl, title, description, ogImageUrl); + const ogTags = generateOgTags(pageUrl, title, description, ogImageUrl); // Insert OG tags before html = html.replace('', `${ogTags}`);