Last modified: 2013-04-22 16:16:40 UTC
If starting as logged out user from http://commons.wikimedia.org/wiki/Special:UploadWizard -> then the "Not logged in" page is displayed -> and after logging in -> user get's redirected to Main_Page instead of special upload wizard page.
just verified that this is still a problem.
Patch submitted, awaiting review: https://gerrit.wikimedia.org/r/8475
Patch was accepted, no longer an issue.
There are apparently additional prefill fields that we need to handle, currently only campaign is hardcoded.
To reproduce, logout and visit e.g. https://en.wikipedia.org/wiki/List_of_rijksmonuments_in_Bloemendaal_%28town%29 Click on one of the placeholder images on the right. The URL will be sth. like https://commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-nl&id=511067&description=Building+at+the+complex+of+the+former+hotel+%22Duin+en+Daal%22&lat=52.40710&lon=4.60919 There are several parameters to pre-fill the UpWiz fields later. If logged out, you will be directed to the login/account creation page, the parameters are still in the URL: https://commons.wikimedia.org/w/index.php?title=Special:UserLogin&returnto=Special:UploadWizard&returntoquery=campaign=wlm-nl&id=511115&description=Former+billiard+room&lat=52.40012&lon=4.61276 After logging in (most probably also after account creation) the parameters are reduced to the "campaign" parameter. Thx for fixing. elke
Ok it looks like we're missing some escaping, so only the first item in the the 'returntoquery' parameter gets seen -- the first & in it separates it off. Campaign isn't being hardcoded, it's just the first item.
Oops! Sorry about that, this one should work a little better: https://gerrit.wikimedia.org/r/10125