change references to be relative to a given baseurl