Shorten URLs by converting them from absolute to relative.