Skip to content

Commit 6625945

Browse files
Lukasz Bajsarowiczraumatbel
authored andcommitted
#10611 Ignore request key check for error page to avoid redirect loop
1 parent db05632 commit 6625945

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Backend/Controller/Adminhtml/Noroute

1 file changed

+10
-0
lines changed

app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@ public function execute()
3939
$resultPage->addHandle('adminhtml_noroute');
4040
return $resultPage;
4141
}
42+
43+
/**
44+
* Error page should be public accessible. Do not check keys to avoid redirect loop
45+
*
46+
* @return bool
47+
*/
48+
protected function _validateSecretKey()
49+
{
50+
return true;
51+
}
4252
}

0 commit comments

Comments
 (0)