Author: dan
Description:
A page called 'One Two Three' is encoded as 'One_Two_Three' by {{PAGENAMEE}},
which is fine for internal (self referential) links to 'this' page in the
current or another wiki, but isn't adequate for 'dynamic' links to google for
example.
So [http://www.google.com/search?q={{PAGENAMEE}} search this page on Google]
doesn't work like it should.
If {{PAGENAMEE}} instead produced 'One%20%Two%20Three' or 'One+Two+Three', it
would still work with 'internal' links within and between wiki's, but would also
work in the 'google' context above.
The code looks like this...
$t->mDbkeyform = str_replace( ' ', '_', $title ); $t->mArticleID = ( $ns >= 0 ) ? -1 : 0; $t->mUrlform = wfUrlencode( $t->mDbkeyform );
When it could better just look like this...
$t->mUrlform = wfUrlencode( $title );
Thanks to the IRC people for helping me with this bug report.
Version: unspecified
Severity: normal