Issue 14303: Fixes %3f problem with OAuth login

This commit is contained in:
Michael 2024-08-03 19:21:29 +00:00
parent 26f8392754
commit efee399397
3 changed files with 9 additions and 5 deletions

View file

@ -60,7 +60,11 @@ class Login extends BaseModule
protected function content(array $request = []): string
{
$return_path = $request['return_path'] ?? $this->session->pop('return_path', '') ;
if (!empty($request['return_authorize'])) {
$return_path = 'oauth/authorize?' . $request['return_authorize'];
} else {
$return_path = $request['return_path'] ?? $this->session->pop('return_path', '') ;
}
if ($this->session->getLocalUserId()) {
$this->baseUrl->redirect($return_path);