After the fix to remove trailing slashes, the .ref and .removeRef methods still removes the last character.
This results in URLs looking like this:
http://services.odata.org/v4/TripPinServiceRW/People('myusername')/$ref?$id=http://services.odata.org/v4/TripPinServiceRW/People('otherusername'
This PR simply removes the .substring call when adding the resource ID to the request.
Let me know if you want this fixed some other way. Considering #60, this might not be a permanent fix anyway.
After the fix to remove trailing slashes, the
.ref
and.removeRef
methods still removes the last character.This results in URLs looking like this:
http://services.odata.org/v4/TripPinServiceRW/People('myusername')/$ref?$id=http://services.odata.org/v4/TripPinServiceRW/People('otherusername'
This PR simply removes the
.substring
call when adding the resource ID to the request.Let me know if you want this fixed some other way. Considering #60, this might not be a permanent fix anyway.