Issue #3422331: avoid headers already being send on form alter when auto redirect is enfored by introducing a middleware service to handle the redirect before kernel takes over the request.