Our group doesn’t allow jumping what so ever and we use the Fighting Railroads expansion. We require direct path of all rail lines and we give the freedom that any cross or Y section of the rail line has a switcher and we also play the different gauge rules.
I do not see why the rules wouldn’t allow it but I would assume building a rail line inside a territory itself would logically conclude that all rails lines inside that territory are now connected regardless.