added support to convert full urls to relative urls.