Skip to content

Commit e6acced

Browse files
ENGCOM-7463: Redirecting users to sales order history page #27740
- Merge Pull Request #27740 from ajithkumar-maragathavel/magento2:order-returns-form - Merged commits: 1. 4592185 2. 626947d 3. 8e06f2c
2 parents d4a9098 + 8e06f2c commit e6acced

File tree

2 files changed

+3
-3
lines changed
  • app/code/Magento/Sales/Controller/Guest
  • dev/tests/integration/testsuite/Magento/Sales/Controller/Guest

2 files changed

+3
-3
lines changed

app/code/Magento/Sales/Controller/Guest/Form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Magento\Sales\Helper\Guest as GuestHelper;
1919

2020
/**
21-
* Class Form
21+
* Class Form - display Sales and Returns form for guest users
2222
*/
2323
class Form extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface
2424
{
@@ -63,7 +63,7 @@ public function __construct(
6363
public function execute()
6464
{
6565
if ($this->customerSession->isLoggedIn()) {
66-
return $this->resultRedirectFactory->create()->setPath('customer/account/');
66+
return $this->resultRedirectFactory->create()->setPath('sales/order/history');
6767
}
6868

6969
$resultPage = $this->resultPageFactory->create();

dev/tests/integration/testsuite/Magento/Sales/Controller/Guest/FormTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testAttemptToOpenTheFormAsLoggedIn()
5555
{
5656
$this->login(1);
5757
$this->dispatch('sales/guest/form/');
58-
$this->assertRedirect($this->stringContains('customer/account'));
58+
$this->assertRedirect($this->stringContains('sales/order/history'));
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)