diff --git a/src/Module/OAuth/Authorize.php b/src/Module/OAuth/Authorize.php index b091413bc..8afc7d48a 100644 --- a/src/Module/OAuth/Authorize.php +++ b/src/Module/OAuth/Authorize.php @@ -52,7 +52,7 @@ class Authorize extends BaseApi Logger::info('Redirect to login'); $request = $_REQUEST; unset($request['pagename']); - DI::app()->redirect('login?return_path=/oauth/authorize' . urlencode('?' . http_build_query($request))); + DI::app()->redirect('login?return_path=' . urlencode('/oauth/authorize?' . http_build_query($request))); } else { Logger::info('Already logged in user', ['uid' => $uid]); }