Fixes the API endpoint URL.