Skip to content

Commit 45539f1

Browse files
committed
Fix wrong base URLs in list views
1 parent 29a0777 commit 45539f1

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use wcf\system\listView\user\CategoryArticleListView;
1010
use wcf\system\MetaTagHandler;
1111
use wcf\system\page\PageLocationManager;
12+
use wcf\system\request\LinkHandler;
1213
use wcf\system\WCF;
1314
use wcf\util\StringUtil;
1415

@@ -52,6 +53,16 @@ protected function createListView(): ArticleListView
5253
return new CategoryArticleListView($this->category->categoryID);
5354
}
5455

56+
#[\Override]
57+
protected function initListView(): void
58+
{
59+
parent::initListView();
60+
61+
$this->listView->setBaseUrl(LinkHandler::getInstance()->getControllerLink(static::class, [
62+
'object' => $this->category,
63+
]));
64+
}
65+
5566
#[\Override]
5667
public function checkPermissions()
5768
{

wcfsetup/install/files/lib/page/TaggedListViewPage.class.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,17 @@ protected function createListView(): AbstractListView
129129
return $this->provider->getListView($this->tagIDs);
130130
}
131131

132+
#[\Override]
133+
protected function initListView(): void
134+
{
135+
parent::initListView();
136+
137+
$this->listView->setBaseUrl(LinkHandler::getInstance()->getControllerLink(static::class, [
138+
'objectType' => $this->objectType->objectType,
139+
'tagIDs' => $this->tagIDs,
140+
]));
141+
}
142+
132143
#[\Override]
133144
public function readData()
134145
{

0 commit comments

Comments
 (0)