From ded7e679045b9ca296bd9c3861dcc2bb3b0942d0 Mon Sep 17 00:00:00 2001 From: Luke Rodgers Date: Wed, 4 Oct 2017 17:36:20 +0100 Subject: [PATCH] Disable secret key validation on admin noroute to fix redirect loop Similar to 2f422ad42e5476a476ff095e3377baad9c616927 but using the framework. Fixes issue #10611 for the `2.2-develop` branch. Doesn't address the route cause, but only fixes the symptom as per https://github.com/magento/magento2/pull/10921#discussion_r141584859 --- .../Magento/Backend/Controller/Adminhtml/Noroute/Index.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php b/app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php index f03d58b9a3eb7..64038d17f14c6 100644 --- a/app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php +++ b/app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php @@ -8,6 +8,13 @@ class Index extends \Magento\Backend\App\Action { + /** + * Array of actions which can be processed without secret key validation + * + * @var string[] + */ + protected $_publicActions = ['index']; + /** * @var \Magento\Framework\View\Result\PageFactory */