We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12fc84d commit 00f3b9eCopy full SHA for 00f3b9e
src/components/layout.astro
@@ -51,8 +51,9 @@ const query = new URLSearchParams(
51
),
52
)
53
54
+const currentUrlNoQS = new URL(currentUrl.toString().replace(currentUrl.search, ""))
55
const canonicalUrl = new URL(
- currentUrl + (query.size > 0 ? "?" + query.toString() : ""),
56
+ currentUrlNoQS.toString() + (query.size > 0 ? "?" + query.toString() : ""),
57
Astro.site,
58
59
---
0 commit comments