Skip to content

Cms no route page not working. Magento 2

A page with an invalid url should redirect to a page not found, but it throws an error

TypeError: MagentoFrameworkAppFrontController::processRequest(): Argument #2 ($actionInstance) must be of type MagentoFrameworkAppActionInterface, MagentoFrameworkControllerResultRedirectInterceptor given, called in vendormagentoframeworkAppFrontController.php on line 147 and defined in vendormagentoframeworkAppFrontController.php:177

enter image description here

Can anyone help?
Thanks