construct URL in connector