commercetools-docs-kit
commercetools-docs-kit copied to clipboard
External links identified incorrectly as internal links
If an external link ends with .html it is recognized as an internal link. For example, in the following content the SDKResponse link renders as external but the narrowing link renders as internal. Removing the .html makes the narrowing link render as external.
All API methods return the SDKResponse type, which has an
isErrorboolean property that can be used for narrowing. WhenisErrorisfalsethe response contains adataproperty with the return type from the API hub, and whentruethere is anerrorproperty with details on the error.