When creating an API using another API Proxy as TargetEndpoint, the path suffix is not being copied to TargetEndpoint.
For example, consider an API (named as BaseAPI) to consume OData services on ES5 Demo System https://sapes5.sapdevcenter.com/sap/opu/odata/sap/EPM_REF_APPS_PROD_MAN_SRV. Invoking /Products on BaseAPI retrieves products correctly and as expected.
When another API is created by setting BaseAPI (an API Proxy) as target Endpoint, the call to /Products simply navigates to base path and retrieves edmx. i.e. final URL becomes https://sapes5.sapdevcenter.com/sap/opu/odata/sap/EPM_REF_APPS_PROD_MAN_SRV instead of https://sapes5.sapdevcenter.com/sap/opu/odata/sap/EPM_REF_APPS_PROD_MAN_SRV/Products.
Note that the query parameters seem to be working in both cases. For example, $format=json correctly gets response in JSON format.
In addition, the variable target.copy.pathsuffix is set to true by default, then why is the path not copied.