Preserve parameters during navigation on Special:PagesWithProp

There is a namespace filter and two more options on the page.
They weren't preserved when the user navigated to another batch
of results (e.g., using "50 next").

Change-Id: I702c08957daa204f151db0d85063da9818835866
This commit is contained in:
Matěj Suchánek 2021-06-26 14:28:02 +02:00
parent 1f66af055d
commit dae38d6696

View file

@ -155,6 +155,20 @@ class SpecialPagesWithProp extends QueryPage {
return false;
}
/**
* @inheritDoc
*/
protected function linkParameters() {
$params = [
'reverse' => $this->reverse,
'sortbyvalue' => $this->sortByValue,
];
if ( $this->ns !== null ) {
$params['namespace'] = $this->ns;
}
return $params;
}
public function getQueryInfo() {
$query = [
'tables' => [ 'page_props', 'page' ],