fix EZP21591: querystring lost in redirection

jira issue: https://jira.ez.no/browse/EZP-21591