diff --git a/apps/codeforafrica/src/lib/data/seo.js b/apps/codeforafrica/src/lib/data/seo.js index 8a7b057b2..62890cbf4 100644 --- a/apps/codeforafrica/src/lib/data/seo.js +++ b/apps/codeforafrica/src/lib/data/seo.js @@ -26,7 +26,7 @@ export default function getPageSeoFromMeta(page, settings) { metaDescription || stringifyDescription(siteDescription) || null; const titleTemplate = siteTitle ? `%s | ${siteTitle}` : null; const defaultTitle = siteTitle || null; - const canonical = site.url.replace(/\/+$/, ""); + const canonical = site?.url?.replace(/\/+$/, ""); const openGraph = { title, description,