Page MenuHomePhabricator

Set $wgRedirectSources on donatewiki and foundationwiki
Closed, ResolvedPublic

Description

Pages redirected to hard redirects (Normal Namespace -> Special Pages/Interwikis) don't show the normal "(Redirected from X)" caption.

EG: http://wikimediafoundation.org/wiki/Comments which redirects to http://wikimediafoundation.org/wiki/Special:FundraiserStatistics (See http://wikimediafoundation.org/wiki/Comments?redirect=no for the redirect)

(For this to work you need http://www.mediawiki.org/wiki/Manual:$wgDisableHardRedirects enabled)


Version: unspecified
Severity: minor

Details

Reference
bz28764

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:30 PM
bzimport set Reference to bz28764.
bzimport added a subscriber: Unknown Object (MLST).

I'm not sure why we want to display the “redirected from”… Could you
explain why this shouldn't be WONTFIX?

(In reply to comment #1)

I'm not sure why we want to display the “redirected from”… Could you
explain why this shouldn't be WONTFIX?

Because it's a redirect like every other one, just because it leads to a special page doesn't make it "special".

We have:

'wgDisableHardRedirects' => array(
'default' => true,
'donatewiki' => false,
'foundationwiki' => false,
),

but $wgRedirectSources seems to be left to the default, i.e. false: this is wrong, it should allows at least donatewiki and foundationwiki themselves.

'wgRedirectSources' => array(
'default' => false,
'donatewiki' => '!^https?://donate\.wikimedia\.org/!',
'foundationwiki' => '!^https?://(www\.)wikimediafoundation\.org/!',
),

??

'wgRedirectSources' => array(

'default' => false,
'donatewiki' => '!^https?://donate\.wikimedia\.org/!',
'foundationwiki' => '!^https?://(www\.)?wikimediafoundation\.org/!',

),

Related URL: https://gerrit.wikimedia.org/r/64211 (Gerrit Change I45b78233ac9f0012b4f36d4485c7e9a08062f331)