uses angular function for building absolute url