Skip to content

Commit 7c674ef

Browse files
author
roman
committed
MAGETWO-61322: Fixed incorrect return-order flow
1 parent 7c2a6c1 commit 7c674ef

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Sales/Controller/AbstractController

1 file changed

+3
-2
lines changed

app/code/Magento/Sales/Controller/AbstractController/Reorder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ public function execute()
6060
$this->messageManager->addErrorMessage(__('Invalid Form Key. Please refresh the page.'));
6161

6262
/** @var \Magento\Framework\Controller\Result\Redirect $redirect */
63-
$redirect=$this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
64-
$redirect->setRefererUrl();
63+
$redirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
64+
$redirect->setPath('*/*/history');
65+
6566
return $redirect;
6667
}
6768
} else {

0 commit comments

Comments
 (0)