save params to use after redirect