Fix EZP-20311: Query parameters get lost when being redirected after login