In the spirit of 882a8e3f09
allow for localized logout target url
This commit is contained in:
parent
2e5ed78095
commit
17b7b558ce
@ -69,6 +69,8 @@ class LogoutListener implements ListenerInterface
|
||||
{
|
||||
$request = $event->getRequest();
|
||||
|
||||
$this->targetUrl = str_replace('{_locale}', $request->getSession()->getLocale(), $this->targetUrl);
|
||||
|
||||
if ($this->logoutPath !== $request->getPathInfo()) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user