Make endpoint_url contain only host url without full path