Reauthentication link in permission errors does not use returnto
Closed, ResolvedPublic

Description

PermissionManager::getUserRightStatus() shows the badaccess-reauthenticate message to indicate that the user needs to reauthenticate. The message has a link to reauthenticate, but the link does not include returnto/returntoquery parameters, making it annoying to use.

Details

Related Changes in Gerrit:

Event Timeline

While we are at it, would be nice to use ApiMessage like in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikimediaCustomizations/+/1281818 so that the error shows up to API clients in a somewhat consistent way.

Change #1309753 had a related patch set uploaded (by Mstyles; author: Mstyles):

[mediawiki/core@master] Reauth: use returnto in link for perms errors

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

Change #1309753 merged by jenkins-bot:

[mediawiki/core@master] Reauth: use returnto in link for perms errors

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