From 9097b3a2e7fa1161e0561eb1a0e06e547a321269 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 7 Aug 2012 19:24:03 +0200 Subject: [PATCH] Pass the 'returntoquery' parameter on cookie check. Change-Id: I6d80ac4ec6a129f7670b046ec5fe4ab35fc4e352 --- includes/specials/SpecialUserlogin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index adda68c1fe..6f82faddc9 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -1198,6 +1198,7 @@ class LoginForm extends SpecialPage { $query = array( 'wpCookieCheck' => $type ); if ( $this->mReturnTo ) { $query['returnto'] = $this->mReturnTo; + $query['returntoquery'] = $this->mReturnToQuery; } $check = $titleObj->getFullURL( $query ); -- 2.20.1