fix: remove trailing slash from canonical URL

This commit is contained in:
Oliver Davies 2023-05-18 08:36:44 +01:00
parent 3796f23aa6
commit 2d603f5726

View file

@ -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(/\/$/, "");
--- ---
<!DOCTYPE html> <!DOCTYPE html>