If you managed somehow to connect a hose from the fuel return port to the vapor evacuation/overflow port, that would likely send fuel to the ground while the engine was running.
If I had done this wouldn't it pump fuel out continuously?
As I indicated, fuel would pump out until the engine was shut down. Without your fully explaining the circumstances, it was difficult for me to understand what was happening. You have succeeded now in penetrating my reasoning's thorny defenses.
As Dai indicates, verify the leak's source.
If there is a flapper assembly in the fuel filler opening, filling the tank to its ceiling is difficult but possible; fuel will start to flow from the opening before the tank fills completely, but you could keep filling and attempt to meet the challenge.
If there is no flapper assembly, filling to the ceiling is not difficult but room for effective fuel vapor expansion is limited so tank pressure can increase until the fuel level drops sufficiently. If the tank was filled almost to its ceiling and was hot from riding, tank fuel pressure could push fuel into the evacuation port until tank pressure stabilized. If fuel cap ventilation is compromised, that could contribute to tank pressure.
It doesn't seem like a big deal, at least from here it doesn't. It has stopped leaking.
Enjoy riding until it leaks again. Use proper fuel injection hose clamps on pressure lines to forestall a fiery squirt or loss of fuel pressure from line leaks within the tank.