Last modified: 2008-09-13 06:27:44 UTC
There is no "returnto" parameter on Special:Preferences in link to login page, so after login we are redirected to Main Page. The diff fixing it for 1.12 (English only! it should be done in every translation) is here: {{{ Index: SpecialPreferences.php =================================================================== --- SpecialPreferences.php +++ SpecialPreferences.php @@ -121,10 +121,10 @@ } function execute() { - global $wgUser, $wgOut, $wgWikiPrefs, $wgUseWikiPrefs; + global $wgUser, $wgOut, $wgWikiPrefs, $wgUseWikiPrefs, $wgTitle; if ( $wgUser->isAnon() ) { - $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext' ); + $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext', array($wgTitle->getPrefixedDBkey()) ); return; } if ( wfReadOnly() ) { }}} and: {{{ Index: MessagesEn.php =================================================================== --- MessagesEn.php +++ MessagesEn.php @@ -1233,7 +1233,7 @@ 'mypreferences' => 'My preferences', 'prefs-edits' => 'Number of edits:', 'prefsnologin' => 'Not logged in', -'prefsnologintext' => 'You must be [[Special:Userlogin|logged in]] to set user preferences.', +'prefsnologintext' => 'You must be <span class="plainlinks">[{{fullurl:Special:Userlogin|returnto=$1}} logged in]</span> to set user preferences.', 'prefsreset' => 'Preferences have been reset from storage.', 'qbsettings' => 'Quickbar', 'qbsettings-none' => 'None', }}} With this link will be "http://server/index.php?title=Special:Userlogin&returnto=Special:Preferences" instead of "http://server/index.php?title=Special:Userlogin". //Marooned [at] wikia.com
Created attachment 4435 [details] bug 12284 pach
Fixed in r40773