Skip to content

Commit

Permalink
Merge pull request #461 from therealpecus/v4-fix-paginated-canonical
Browse files Browse the repository at this point in the history
fix: use pagination information on canonical (v4)
  • Loading branch information
Tam authored Feb 16, 2024
2 parents cdbbe39 + daec96c commit 6fd5959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/data/SeoData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down

0 comments on commit 6fd5959

Please sign in to comment.