Fix redirect detector