Split get_transport_and_path_from_url() out of get_transport_and_path().