Skip to content

Commit 2236ab1

Browse files
author
Bomko, Alex(abomko)
committed
Merge pull request #5 from magento-goinc/MAGETWO-44964
MAGETWO-44964: 404 error for specific url
2 parents 360a094 + f402fd7 commit 2236ab1

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

lib/internal/Magento/Framework/App/Router/ActionList.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ public function get($module, $area, $namespace, $action)
8080
if (in_array(strtolower($action), $this->reservedWords)) {
8181
$action .= 'action';
8282
}
83-
$fullPath = strtolower(
84-
str_replace('_', '\\', $module) . '\\controller' . $area
85-
. '\\' . str_replace('_', '\\', $namespace) . '\\' . $action
83+
$fullPath = str_replace(
84+
'_',
85+
'\\',
86+
strtolower(
87+
$module . '\\controller' . $area . '\\' . $namespace . '\\' . $action
88+
)
8689
);
8790
if (isset($this->actions[$fullPath])) {
8891
return is_subclass_of($this->actions[$fullPath], $this->actionInterface) ? $this->actions[$fullPath] : null;

lib/internal/Magento/Framework/App/Test/Unit/Router/ActionListTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,6 @@ public function getDataProvider()
142142
['magento\module\controller\area\namespace\catchaction' => $mockClassName],
143143
$actionClass
144144
],
145-
[
146-
'Magento_Module',
147-
'Area',
148-
'Namespace_A',
149-
'Index_edit',
150-
['magento\module\controller\area\namespace\a\index_edit' => $mockClassName],
151-
$actionClass
152-
],
153145
[
154146
'Magento_Module',
155147
'Area',

0 commit comments

Comments
 (0)