Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/290048
Change subject: AuthManagerSpecialPage: Preserve returnto and returntoquery params ...................................................................... AuthManagerSpecialPage: Preserve returnto and returntoquery params They're are needed for a redirect to the target page after a successful login. Bug: T135924 Change-Id: I6ded7f9bb255cbb332a5810e7ed3cb3ecfdb2c04 --- M includes/specialpage/AuthManagerSpecialPage.php 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/48/290048/1 diff --git a/includes/specialpage/AuthManagerSpecialPage.php b/includes/specialpage/AuthManagerSpecialPage.php index 7866c12..56f286a 100644 --- a/includes/specialpage/AuthManagerSpecialPage.php +++ b/includes/specialpage/AuthManagerSpecialPage.php @@ -495,6 +495,7 @@ * @return array */ protected function getPreservedParams( $withToken = false ) { + $request = $this->getRequest(); $params = []; if ( $this->authAction !== $this->getDefaultAction( $this->subPage ) ) { $params['authAction'] = $this->getContinueAction( $this->authAction ); @@ -502,6 +503,12 @@ if ( $withToken ) { $params[$this->getTokenName()] = $this->getToken()->toString(); } + if ( $request->getVal( 'returnto' ) ) { + $params['returnto'] = $request->getVal( 'returnto' ); + } + if ( $request->getVal( 'returntoquery' ) ) { + $params['returntoquery'] = $request->getVal( 'returntoquery' ); + } return $params; } -- To view, visit https://gerrit.wikimedia.org/r/290048 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6ded7f9bb255cbb332a5810e7ed3cb3ecfdb2c04 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits