File tree 1 file changed +2
-6
lines changed
app/code/Magento/Ui/Controller/Index 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,8 @@ public function __construct(
92
92
public function execute ()
93
93
{
94
94
if ($ this ->_request ->getParam ('namespace ' ) === null ) {
95
- $ this ->_redirect ('admin/noroute ' );
96
-
97
- return ;
95
+ return $ this ->_redirect ('noroute ' );
98
96
}
99
-
100
97
try {
101
98
$ component = $ this ->uiComponentFactory ->create ($ this ->getRequest ()->getParam ('namespace ' ));
102
99
if ($ this ->validateAclResource ($ component ->getContext ()->getDataProvider ()->getConfigData ())) {
@@ -105,8 +102,7 @@ public function execute()
105
102
106
103
$ contentType = $ this ->contentTypeResolver ->resolve ($ component ->getContext ());
107
104
$ this ->getResponse ()->setHeader ('Content-Type ' , $ contentType , true );
108
-
109
- return ;
105
+ return $ this ->getResponse ();
110
106
} else {
111
107
/** @var \Magento\Framework\Controller\Result\Json $resultJson */
112
108
$ resultJson = $ this ->resultJsonFactory ->create ();
You can’t perform that action at this time.
0 commit comments