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
Can anyone help?
Thanks