Closed FredKSchott closed 2 years ago
Create a general-purpose Astro.url helper. Deprecate Astro.canonicalURL to use Astro.url instead.
Astro.url
Astro.canonicalURL
// Before: const currentPathname = new URL(Astro.request.url).pathname; const canonicalURL = Astro.canonicalURL; // After: const currentPathname = Astro.url.pathname; const canonicalURL = new URL(Astro.url.pathname, Astro.site);
We're getting close to the Astro v1.0 RC, so would appreciate quick reviews from anyone reading, especially from @withastro/tsc. Thanks!
Summary
Create a general-purpose
Astro.url
helper. DeprecateAstro.canonicalURL
to useAstro.url
instead.Links