Selected links should not be red.
Bug: T236608 Change-Id: I949b51c0efcb883ce0d9dac4fbae956fdc467be9
This commit is contained in:
parent
e0f7759256
commit
8e16fa453e
1 changed files with 6 additions and 1 deletions
|
|
@ -1011,7 +1011,12 @@ class SkinTemplate extends Skin {
|
|||
}
|
||||
$exists = true;
|
||||
if ( $checkEdit && !$title->isKnown() ) {
|
||||
$classes[] = 'new';
|
||||
// Selected tabs should not show as red link. It doesn't make sense
|
||||
// to show a red link on a page the user has already navigated to.
|
||||
// https://phabricator.wikimedia.org/T294129#7451549
|
||||
if ( !$selected ) {
|
||||
$classes[] = 'new';
|
||||
}
|
||||
$exists = false;
|
||||
if ( $query !== '' ) {
|
||||
$query = 'action=edit&redlink=1&' . $query;
|
||||
|
|
|
|||
Loading…
Reference in a new issue