Page MenuHomePhabricator

Special:UserRights "you must log in" link does not pass &returnto= on, so the user ends up at the main page
Closed, InvalidPublic

Description

Special:UserRights "you must login" link does not pass &returnto= on, so after logging in, the user ends up at the main page

Event Timeline

Legoktm raised the priority of this task from to Needs Triage.
Legoktm updated the task description. (Show Details)
Legoktm subscribed.

Grepping for SpecialUserLogin in languages/i18n/en.json shows other pages with the same problem.

can someone explain this bug, I want to work on it.

can someone explain this bug, I want to work on it.

@NeerajBattan: Thanks for your interest! Please elaborate how we can we help you.

I am not understanding exactly what is the bug.Can someone explain it please??

where does "you must login" link appears?

where does "you must login" link appears?

On any MediaWiki installation on the page Special:UserRights when you are not logged in.

Aklapper renamed this task from Special:UserRights "you must login" link does not pass &returnto= on, so the user ends up at the main page to Special:UserRights "you must log in" link does not pass &returnto= on, so the user ends up at the main page.Jan 14 2016, 1:37 PM

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?

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.

Aklapper: can you tell me where is the view file for the "SpecialUserrights" page.

@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. :)

@Legoktm
How to recreate this bug i.e what must be my wiki settings ?

matej_suchanek removed NeerajBattan as the assignee of this task.
matej_suchanek moved this task from Backlog to Done on the good first task board.
matej_suchanek subscribed.

Special:UserRights doesn't require additional permissions anymore (T27319: Make Special:UserRights available to everyone)

matej_suchanek removed NeerajBattan as the assignee of this task.
This comment was removed by matej_suchanek.