Merge "Links to redirects should have ?redirect=no"

This commit is contained in:
jenkins-bot 2023-12-23 07:49:11 +00:00 committed by Gerrit Code Review
commit b7374698ef

View file

@ -317,6 +317,8 @@ class SpecialNuke extends SpecialPage {
[],
[ 'action' => 'history' ]
);
$isRedirect = $title->isRedirect();
$query = $isRedirect ? [ 'redirect' => 'no' ] : [];
$out->addHTML( '<li>' .
Xml::check(
'pages[]',
@ -324,7 +326,7 @@ class SpecialNuke extends SpecialPage {
[ 'value' => $title->getPrefixedDBkey() ]
) . "\u{00A0}" .
( $thumb ? $thumb->toHtml( [ 'desc-link' => true ] ) : '' ) .
$linkRenderer->makeKnownLink( $title ) . $wordSeparator .
$linkRenderer->makeKnownLink( $title, null, [], $query ) . $wordSeparator .
$this->msg( 'parentheses' )->rawParams( $userNameText . $changesLink )->escaped() .
"</li>\n" );
}