From 2db2b79bfabf727c23876ae027e35ff517c13638 Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Tue, 9 Oct 2018 21:38:17 +0200 Subject: [PATCH] Give Login Form previous URL to return to. SESSION var is empty if invalid page. empty args is catched by function --- src/Module/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Login.php b/src/Module/Login.php index f1f728ae90..25ddd13502 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -42,7 +42,7 @@ class Login extends BaseModule goaway(self::getApp()->get_baseurl()); } - return self::form(self::getApp()->get_baseurl(), intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED); + return self::form($_SESSION['return_url'], intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED); } public static function post() -- 2.39.5