Page MenuHomePhabricator

[L] Update how response to temp account creation is handled on the File page
Closed, ResolvedPublic

Description

POSTs to wikibase API endpoints that create a temp user now should return a tempuserredirect URL now (in addition to tempusercreated, which still contains the username)

To handle this, we need to :

  • set returnto to the current page title when sending the POST
  • optionally returntoquery or returntoanchor when sending the POST to let the code realize, once the user was redirected back to commons, that a temp user was created and it should show some sort of message about it (and, if necessary, select the "structured data" tab)

Then if the tempuserredirect is non-null in the response to the POST, we need to redirect to that

Event Timeline

MarkTraceur renamed this task from Update how response to temp account creation is handled on the File page to [L] Update how response to temp account creation is handled on the File page.Mar 6 2024, 7:21 PM

Change #1017862 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/WikibaseMediaInfo@master] Redirect back to tempuserredirect

https://gerrit.wikimedia.org/r/1017862

Change #1017862 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Redirect back to tempuserredirect

https://gerrit.wikimedia.org/r/1017862

@Etonkovidova not sure if you can check this on beta ...

@Etonkovidova not sure if you can check this on beta ...

I can see tempusercreated after a temp user made edits on File page (or on Structured data), but not tempuserredirect.