Retain query strings when logging in and out.