Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.2-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - #13040: magento/magento2#: Customer Login/Logout Issue (by @vinayshah)
  • Loading branch information
magento-engcom-team authored Feb 7, 2018
2 parents 6bdc08a + a70ab83 commit 03bb798
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/Customer/Model/Account/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ protected function processLoggedCustomer()
$referer = $this->request->getParam(CustomerUrl::REFERER_QUERY_PARAM_NAME);
if ($referer) {
$referer = $this->urlDecoder->decode($referer);
preg_match('/logoutSuccess/', $referer, $matches, PREG_OFFSET_CAPTURE);
if (!empty($matches)) {
$referer = str_replace('logoutSuccess', '', $referer);
}
if ($this->hostChecker->isOwnOrigin($referer)) {
$this->applyRedirect($referer);
}
Expand Down

0 comments on commit 03bb798

Please sign in to comment.