fix bug 777361 - Keep querystring values when logging in and out