Change tcapi url to remove trailing slash