Last modified: 2008-09-13 06:27:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12284 - Lack of "returnto" parameter on Special:Preferences (fix attached)
Lack of "returnto" parameter on Special:Preferences (fix attached)
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2007-12-12 16:22 UTC by Marooned
Modified: 2008-09-13 06:27 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

bug 12284 pach (1.31 KB, patch)
2007-12-12 16:27 UTC, Marooned

Description Marooned 2007-12-12 16:22:29 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()) );
 		if ( wfReadOnly() ) {
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]
Comment 1 Marooned 2007-12-12 16:27:08 UTC
Created attachment 4435 [details]
bug 12284 pach
Comment 2 X! 2008-09-13 06:27:44 UTC
Fixed in r40773

Note You need to log in before you can comment on or make changes to this bug.