forked from GNUsocial/gnu-social
[CORE][SECURITY][UX] Save previous url on /register and /logout
This commit is contained in:
parent
199fa0278c
commit
22e292276c
@ -151,7 +151,7 @@ class GNUsocial implements EventSubscriberInterface
|
||||
$request = $event->getRequest();
|
||||
|
||||
// Save the target path, so we can redirect back after logging in
|
||||
if (!(!$event->isMasterRequest() || $request->isXmlHttpRequest() || in_array($request->attributes->get('_route'), ['login', 'initialize']))) {
|
||||
if (!(!$event->isMasterRequest() || $request->isXmlHttpRequest() || in_array($request->attributes->get('_route'), ['login', 'register', 'logout']))) {
|
||||
$this->saveTargetPath($this->session, 'main', $request->getBaseUrl());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user