Fix EZP-21591: querystring lost in redirection