It routes back down the frame and then down to between the swing arm and the engine case.
It is a well drain to allow fuel spillage around the tank filler hole to route to ground rather than on any hot engine bits.
These can plug with debris and insects when left unattended, and should be checked periodically.
Cheers,