That wasn't very pretty, no... It's simplest with a U-profile on the lower part, but it should definitely be rerouted completely because it can't look nice running it over the window ledge... You can install a junction box and splice higher up to make it reasonable.