Wait for the redirection is finished. thanks.