Special:UserRights "you must login" link does not pass &returnto= on, so after logging in, the user ends up at the main page
Description
Related Objects
- Mentioned In
- T154066: T118874 has duplicate actions (closing the task twice)
- Mentioned Here
- T27319: Make Special:UserRights available to everyone
Event Timeline
Grepping for SpecialUserLogin in languages/i18n/en.json shows other pages with the same problem.
On any MediaWiki installation on the page Special:UserRights when you are not logged in.
So, basically after login we want to end up at the Special:UserRights page, instead of Main_Page.
Hi Aklapper, I was trying to solve this bug but I am not able to find where the problem is can you help me a little bit?
Sure! Please elaborate what exactly you have done and tried so far trying to fix this bug (files and code lines you have found, changes you have made that did not work when testing).
I was trying to look in the SpecialUserRights.php and the SpecialUserLogin.php file to figure out what is the difference between this login and logging in from anywhere else.
@NeerajBattan: Can you elaborate why you "tried to look" instead of actually looking? :) I don't know what a "view file" is, but I guess that SpecialUserRights.php is indeed a good place to start.
Please explicitly explain what you have tried so far or which **specific** code lines are hard to understand and people might be able to help. You could also ask on IRC. Thanks!
@Aklapper: I was trying to see the difference between the faulty login button and the right top login button.
Can you please tell me how can I learn about the top right login button. I mean how it is working?
@Aklapper hey I want to work on this bug .I think passing a returnto parameter to the login page when login link is clicked so that it returns back to the Special:UserRights page would we enough ?
What are your views ?
That would be my naïve understanding after reading the task summary line but we will only know if that would be enough once someone has written code and tested it. :) No need to ping me personally though as I cannot help much here. :)
Special:UserRights doesn't require additional permissions anymore (T27319: Make Special:UserRights available to everyone)