Seems like there would be a URL utility for turning relative paths into absolute URLs.