Skip to content

Commit e8ecc49

Browse files
MC-29736: Minor changes ui render
1 parent f9a8884 commit e8ecc49

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/Ui/Controller/Index/Render.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,8 @@ public function __construct(
9292
public function execute()
9393
{
9494
if ($this->_request->getParam('namespace') === null) {
95-
$this->_redirect('admin/noroute');
96-
97-
return;
95+
return $this->_redirect('noroute');
9896
}
99-
10097
try {
10198
$component = $this->uiComponentFactory->create($this->getRequest()->getParam('namespace'));
10299
if ($this->validateAclResource($component->getContext()->getDataProvider()->getConfigData())) {
@@ -105,6 +102,7 @@ public function execute()
105102

106103
$contentType = $this->contentTypeResolver->resolve($component->getContext());
107104
$this->getResponse()->setHeader('Content-Type', $contentType, true);
105+
return $this->getResponse();
108106
} else {
109107
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
110108
$resultJson = $this->resultJsonFactory->create();

0 commit comments

Comments
 (0)