Skip to content

Commit 36cc4b8

Browse files
authored
ENGCOM-4235: [Backport] Fixed redirection issue in Admin-> Content -> Schedule #21160
2 parents 341e0d7 + b18bc64 commit 36cc4b8

File tree

1 file changed

+7
-2
lines changed
  • app/code/Magento/Backend/Controller/Adminhtml/System/Design

1 file changed

+7
-2
lines changed

app/code/Magento/Backend/Controller/Adminhtml/System/Design/Save.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
*/
77
namespace Magento\Backend\Controller\Adminhtml\System\Design;
88

9+
/**
10+
* Save design action.
11+
*/
912
class Save extends \Magento\Backend\Controller\Adminhtml\System\Design
1013
{
1114
/**
@@ -26,6 +29,8 @@ protected function _filterPostData($data)
2629
}
2730

2831
/**
32+
* Save design action.
33+
*
2934
* @return \Magento\Backend\Model\View\Result\Redirect
3035
*/
3136
public function execute()
@@ -54,10 +59,10 @@ public function execute()
5459
} catch (\Exception $e) {
5560
$this->messageManager->addErrorMessage($e->getMessage());
5661
$this->_objectManager->get(\Magento\Backend\Model\Session::class)->setDesignData($data);
57-
return $resultRedirect->setPath('adminhtml/*/', ['id' => $design->getId()]);
62+
return $resultRedirect->setPath('*/*/edit', ['id' => $design->getId()]);
5863
}
5964
}
6065

61-
return $resultRedirect->setPath('adminhtml/*/');
66+
return $resultRedirect->setPath('*/*/');
6267
}
6368
}

0 commit comments

Comments
 (0)