From 98e45890f76c7b7873d70ff8e5eacb9bacbcda41 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Wed, 14 Sep 2022 00:05:52 +0630 Subject: [PATCH] Fix og image to be at root url always --- src/layouts/Layout.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 5e7317d..7cc0953 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -16,7 +16,7 @@ const { } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site); -const socialImageURL = new URL(ogImage, Astro.url); +const socialImageURL = new URL(ogImage, Astro.url.origin); ---