We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f5af9 commit 07f7b61Copy full SHA for 07f7b61
app/code/Magento/Customer/Model/Plugin/CustomerNotification.php
@@ -154,7 +154,9 @@ private function isPostRequest(): bool
154
*/
155
private function isLogoutRequest(): bool
156
{
157
- return $this->request->getRequestUri() === '/customer/account/logout/';
+ return $this->request->getRouteName() === 'customer'
158
+ && $this->request->getControllerName() === 'account'
159
+ && $this->request->getActionName() === 'logout';
160
}
161
162
/**
0 commit comments