Make warning respect redirecting. #821