if ( $target != '' ) {
$this->setParams( [
- 'query' => $target2,
+ 'query' => Parser::normalizeLinkUrl( $target2 ),
'namespace' => $namespace,
'protocol' => $protocol ] );
parent::execute( $par );
protected function getGroupName() {
return 'redirects';
}
+
+ /**
+ * enwiki complained about low limits on this special page
+ *
+ * @see T130058
+ * @todo FIXME This special page should not use LIMIT for paging
+ */
+ protected function getMaxResults() {
+ return max( parent::getMaxResults(), 60000 );
+ }
}