params history on login with root_path redirect