replace absolute URLs with relative URLs