From: Jonny Tischbein Date: Tue, 9 Oct 2018 19:38:17 +0000 (+0200) Subject: Give Login Form previous URL to return to. SESSION var is empty if invalid page.... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2db2b79bfabf727c23876ae027e35ff517c13638;p=friendica.git Give Login Form previous URL to return to. SESSION var is empty if invalid page. empty args is catched by function --- 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()