There’s supposed to be a short hose running from the air condition condenser compartment to the top of the transmission well. It’s way up front and hard to see. Apparently that hose is missing in your YJ. Replacing it should stop the leak. But you also have to prevent the water from entering that compartment in the first place.
I think, therefore I am ...... a Jeeper