check twice url prevent navigation