mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-27 17:50:21 +00:00
Merge "Links to redirects should have ?redirect=no"
This commit is contained in:
commit
b7374698ef
|
@ -317,6 +317,8 @@ class SpecialNuke extends SpecialPage {
|
||||||
[],
|
[],
|
||||||
[ 'action' => 'history' ]
|
[ 'action' => 'history' ]
|
||||||
);
|
);
|
||||||
|
$isRedirect = $title->isRedirect();
|
||||||
|
$query = $isRedirect ? [ 'redirect' => 'no' ] : [];
|
||||||
$out->addHTML( '<li>' .
|
$out->addHTML( '<li>' .
|
||||||
Xml::check(
|
Xml::check(
|
||||||
'pages[]',
|
'pages[]',
|
||||||
|
@ -324,7 +326,7 @@ class SpecialNuke extends SpecialPage {
|
||||||
[ 'value' => $title->getPrefixedDBkey() ]
|
[ 'value' => $title->getPrefixedDBkey() ]
|
||||||
) . "\u{00A0}" .
|
) . "\u{00A0}" .
|
||||||
( $thumb ? $thumb->toHtml( [ 'desc-link' => true ] ) : '' ) .
|
( $thumb ? $thumb->toHtml( [ 'desc-link' => true ] ) : '' ) .
|
||||||
$linkRenderer->makeKnownLink( $title ) . $wordSeparator .
|
$linkRenderer->makeKnownLink( $title, null, [], $query ) . $wordSeparator .
|
||||||
$this->msg( 'parentheses' )->rawParams( $userNameText . $changesLink )->escaped() .
|
$this->msg( 'parentheses' )->rawParams( $userNameText . $changesLink )->escaped() .
|
||||||
"</li>\n" );
|
"</li>\n" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue