fix legacy goto reditect