Bug Fix: GetConnectionByEndpoint not working

Fixed incorrect url generation in GetConnectionByEndpoint.
: