Bladder urgency is a common symptom of an overactive bladder. It can be very distressing particularly if leakage occurs on the way to the toilet. There are some things to try to reduce the risk of leaking.
Firstly, when you get a strong urge, your instinct will always be to rush but this can cause pressure on a bladder that is already squeezing. So instead of rushing, stop:
When the urgency has calmed down, then make your way slowly to the toilet. If the urge increases on the way, repeat the urge suppression techniques.