Page MenuHomePhabricator

Give a login link to Anoneditwarning and Anonprevieweditwarning
Open, LowestPublic

Description

Author: m.niranjan

Description:
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

Version: unspecified
Severity: normal
OS: Windows XP
Platform: Other

Details

Reference
bz25973

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:24 PM
bzimport set Reference to bz25973.
bzimport added a subscriber: Unknown Object (MLST).

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.

I disagree with wontfix-ing this. I see no reason to not pass a login link to those messages via a $1

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptOct 2 2016, 1:10 PM
Divyasanthi removed Divyasanthi as the assignee of this task.Oct 2 2016, 1:17 PM
Divyasanthi added a subscriber: Divyasanthi.
Krisananthu removed Krisananthu as the assignee of this task.Oct 3 2016, 9:58 AM
Krisananthu added a subscriber: Krisananthu.

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.

Does that mean this task depends on T29264: Create a {{LOGINLINK}} magic word?

Does that mean this task depends on T29264: Create a {{LOGINLINK}} magic word?

My preferred solution would be to have the loginlink be an argument to the message, similar to how its done in other places in MediaWiki - For example, what is done on OutputPage::showPermissionsErrorPage, around line 2777 of OutputPage.php.

In fact this appears to already be done for anoneditwarning (6d4b92f930d / T208989 ), so only anonpreviewwarning remains. I would suggest people copy the approach from 6d4b92f930d

Can I work on this issue?