diff --git a/src/SEO.astro b/src/SEO.astro index 559f50e..ed66eaf 100644 --- a/src/SEO.astro +++ b/src/SEO.astro @@ -128,13 +128,16 @@ if (Astro.props.title) { } else if (Astro.props.titleDefault) { updatedTitle = Astro.props.titleDefault; } + +const baseUrl = Astro.site ?? Astro.url; +const defaultCanonicalUrl = new URL(Astro.url.pathname + Astro.url.search, baseUrl); --- {updatedTitle ?