Skip to content

Commit 07f7b61

Browse files
author
Anna Bukatar
committed
ACP2E-2259: Dynamic Blocks based on Customer Segments don't work correctly (Double Banner after Sign Out when using Segment)
1 parent 21f5af9 commit 07f7b61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Customer/Model/Plugin/CustomerNotification.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ private function isPostRequest(): bool
154154
*/
155155
private function isLogoutRequest(): bool
156156
{
157-
return $this->request->getRequestUri() === '/customer/account/logout/';
157+
return $this->request->getRouteName() === 'customer'
158+
&& $this->request->getControllerName() === 'account'
159+
&& $this->request->getActionName() === 'logout';
158160
}
159161

160162
/**

0 commit comments

Comments
 (0)