fix querystring on redirect