From: Joshua Rüsweg Date: Sat, 2 Mar 2019 19:43:11 +0000 (+0100) Subject: Add canonical URL for CategoryTrophyListPage X-Git-Tag: 5.2.0_Alpha_1~253 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e17d2eda66a8295b1cd8e0ccb337007cad5014d;p=GitHub%2FWoltLab%2FWCF.git Add canonical URL for CategoryTrophyListPage --- diff --git a/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php b/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php index 2396e82120..b2b129668e 100644 --- a/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php +++ b/wcfsetup/install/files/lib/page/CategoryTrophyListPage.class.php @@ -5,6 +5,7 @@ use wcf\data\trophy\category\TrophyCategoryCache; use wcf\data\trophy\TrophyList; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\PermissionDeniedException; +use wcf\system\request\LinkHandler; use wcf\system\WCF; /** @@ -48,6 +49,10 @@ class CategoryTrophyListPage extends TrophyListPage { if (!$this->category->isAccessible()) { throw new PermissionDeniedException(); } + + $this->canonicalURL = LinkHandler::getInstance()->getLink('CategoryTrophyList', [ + 'object' => $this->category + ], ($this->pageNo > 1 ? 'pageNo=' . $this->pageNo : '')); } /**