Skip to content

Commit 03bb798

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #13040: magento/magento2#: Customer Login/Logout Issue (by @vinayshah)
2 parents 6bdc08a + a70ab83 commit 03bb798

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Customer/Model/Account/Redirect.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ protected function processLoggedCustomer()
206206
$referer = $this->request->getParam(CustomerUrl::REFERER_QUERY_PARAM_NAME);
207207
if ($referer) {
208208
$referer = $this->urlDecoder->decode($referer);
209+
preg_match('/logoutSuccess/', $referer, $matches, PREG_OFFSET_CAPTURE);
210+
if (!empty($matches)) {
211+
$referer = str_replace('logoutSuccess', '', $referer);
212+
}
209213
if ($this->hostChecker->isOwnOrigin($referer)) {
210214
$this->applyRedirect($referer);
211215
}

0 commit comments

Comments
 (0)