From 3e17d2eda66a8295b1cd8e0ccb337007cad5014d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sat, 2 Mar 2019 20:43:11 +0100 Subject: [PATCH] Add canonical URL for CategoryTrophyListPage --- .../install/files/lib/page/CategoryTrophyListPage.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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 : '')); } /** -- 2.20.1