Last modified: 2014-04-06 01:12:21 UTC
If I visit action=watch logged out, I get: ---- You must be <a href="/wiki/Special:UserLogin" title="Special:UserLogin">logged in</a> to modify your watchlist. Return to <a href="/wiki/MediaWiki" title="MediaWiki">MediaWiki</a>. ---- The Special:UserLogin URL should include a returnto parameter so that after logging in/registering the user can at least get back to the original page.
I hope that the "Return to MediaWiki" part doesn't mean the title= parameter is being ignored completely (so that it defaults to the main page) just because the token is absent or something. In that case, things might be trickier.
Returnto is to send you to a specific page. not to perform an action. read http://www.mediawiki.org/wiki/User:S_Page_(WMF)/Return_to maybe this is not a bug.
(In reply to Severino Mizael from comment #2) > Returnto is to send you to a specific page. not to perform an action. > read http://www.mediawiki.org/wiki/User:S_Page_(WMF)/Return_to I read it, but it didn't say anything new to me. :) I don't understand your comment, I'm asking returnto to contain a specific page i.e. the page one was in (this is the standard usage), not "to perform an action".
I was wrong earlier. Now I see that if you use the "log in" option at the top right of the page Returnto works correctly. But if you use this "You must be logged in to modify your watchlist" does not work. I'll try solve again.
Change 122089 had a related patch set uploaded by Konarak: MediaWiki:Watchnologintext: Add returnto parameter https://gerrit.wikimedia.org/r/122089
Change 123837 had a related patch set uploaded by Konarak: MediaWiki:Watchnologintext: Add returnto parameter https://gerrit.wikimedia.org/r/123837
Change 122089 abandoned by Konarak: MediaWiki:Watchnologintext: Add returnto parameter Reason: New patch set at https://gerrit.wikimedia.org/r/123837 https://gerrit.wikimedia.org/r/122089
(In reply to Nemo from comment #1) > I hope that the "Return to MediaWiki" part doesn't mean the title= parameter > is being ignored completely (so that it defaults to the main page) just > because the token is absent or something. In that case, things might be > trickier. No, the user will just have to confirm the action by clicking "OK" one more time. You can test it by looking at e.g. <https://en.wikipedia.org/w/index.php?title=Main_Page&action=watch> (the link has no token on it, obviously).
Thanks for the patch!
Change 123837 merged by jenkins-bot: WatchAction: Add 'returnto' and 'returntoquery' to the login link https://gerrit.wikimedia.org/r/123837