Stop default before trying navigation