]> git.mxchange.org Git - friendica.git/commitdiff
Give Login Form previous URL to return to. SESSION var is empty if invalid page....
authorJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 9 Oct 2018 19:38:17 +0000 (21:38 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 9 Oct 2018 19:38:17 +0000 (21:38 +0200)
src/Module/Login.php

index f1f728ae900a0b197dae34419d59d4514db5e2b6..25ddd135025d774a2edc5539e578ccd38cff3845 100644 (file)
@@ -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()