Last modified: 2014-04-10 19:52:01 UTC
Steps: 1. Log-out of Wikipedia 2. Go to any article's Edit page (For ex: http://en.wikipedia.org/w/index.php?title=Jackie_(2010_film)&action=edit ) 3. Click ( http://en.wikipedia.org/wiki/Special:UserLogin ) link from the 1st line of Infobox text ( You are not currently logged in. ) 4. Provide valid user-name and password and click Login 5. Observe the 'return to' URL in the last line "Return to Main Page" (redirects to http://en.wikipedia.org/wiki/Main_Page ) Actual result: Redirects to Wikipedia's main page Expected result: Should redirect to the page the user was previously accessing, i.e., http://en.wikipedia.org/w/index.php?title=Jackie_(2010_film)&action=edit - Niri
This is something the Wikipedians did themselves ( [[MediaWiki:Anoneditwarning]] ), so not really a mediawiki issue... On the other hand, we should maybe include the proper link to the log in page in the default anoneditwarning message (and ditto for [[mediawiki:anonpreviewwarning]]).
The proper link can't be generated with wikitext alone (the &returnto parameter can be, but &returntoquery can't), so I guess we should introduce a {{LOGINLINK}} magic word or something.
See bug #27264
I disagree with wontfix-ing this. I see no reason to not pass a login link to those messages via a $1