resultRedirectFactory->create(); if ($orderId = $this->_getSession()->getReordered()) { $this->_getSession()->clearStorage(); $resultRedirect->setPath('sales/order/view', ['order_id' => $orderId]); } else { $this->_getSession()->clearStorage(); $resultRedirect->setPath('sales/*'); } return $resultRedirect; } }