change redirect type