Skip to content

Commit

Permalink
Confitional url
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Sep 14, 2023
1 parent e4db579 commit 6e71624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/codeforafrica/src/lib/data/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6e71624

Please sign in to comment.