only output base url if it has a value