diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index fbda1d12b..ed0dcfc87 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -33,7 +33,7 @@ const footerLinks = [ }, ]; -const canonicalURL = new URL(Astro.url.pathname, Astro.site); +const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString().replace(/\/$/, ""); ---