mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 03:35:39 +00:00
Links to redirects should have ?redirect=no
Bug: T351575 Change-Id: I8bced40d8f86010ec74ebc5ea81211bd7aaf3803
This commit is contained in:
parent
fe2384d40e
commit
2f16b24b08
|
@ -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