From daec96c452d6d4e4f2427cb233d53850a48d1f97 Mon Sep 17 00:00:00 2001 From: Matteo Fogli Date: Sat, 30 Sep 2023 16:15:34 +0200 Subject: [PATCH] feat: use pagination information on canonical --- src/models/data/SeoData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/data/SeoData.php b/src/models/data/SeoData.php index c7eb28d..04158c4 100644 --- a/src/models/data/SeoData.php +++ b/src/models/data/SeoData.php @@ -378,7 +378,7 @@ public function getExpiry () public function getCanonical () { if (empty($this->advanced['canonical'])) - return UrlHelper::siteUrl(Craft::$app->request->getPathInfo()); + return UrlHelper::siteUrl(Craft::$app->request->getFullPath()); return UrlHelper::siteUrl($this->advanced['canonical']); }