changing all local urls to relative paths