changed JSON request to use relative links