Add AjaxRedirectMiddleware