summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Http/Firewall/LogoutListener.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Http/Firewall/LogoutListener.php b/Http/Firewall/LogoutListener.php
index 0155371..efdc4c3 100644
--- a/Http/Firewall/LogoutListener.php
+++ b/Http/Firewall/LogoutListener.php
@@ -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;
}