diff --git a/app/code/Magento/DesignEditor/Controller/Varien/Router/Standard.php b/app/code/Magento/DesignEditor/Controller/Varien/Router/Standard.php index b537723770320..13cf1ebe64fdb 100644 --- a/app/code/Magento/DesignEditor/Controller/Varien/Router/Standard.php +++ b/app/code/Magento/DesignEditor/Controller/Varien/Router/Standard.php @@ -160,10 +160,10 @@ protected function _prepareVdeRequest(\Magento\App\RequestInterface $request) */ protected function _getMatchedRouters() { - $routers = $this->_routerList->getRouters(); - foreach (array_keys($routers) as $name) { - if (in_array($name, $this->_excludedRouters)) { - unset($routers[$name]); + $routers = array(); + foreach ($this->_routerList as $name => $router) { + if (!in_array($name, $this->_excludedRouters)) { + $routers[$name] = $router; } } return $routers;