fixed redirectTo to redirect