kontent-ai / delivery-sdk-js

Kontent Delivery SDK for Javascript
https://kontent.ai
MIT License
50 stars 34 forks source link

Custom asset domain should replace the domain of links in RTE that link to assets #353

Open Webcoda opened 2 years ago

Webcoda commented 2 years ago

Brief bug description

Passing assetsDomain parameter to the DeliveryClient constructor only replaces the asset domain for assets themselves. However, the links that link to the assets still have kontent-ai original asset domain e.g. https://assets-au-01.kc-usercontent.com or https://preview-assets-au-01.kc-usercontent.com.

What went wrong?

Repro steps

  1. Need to have configured custom domain
  2. Go to any RTE fields
  3. Add link to assets
  4. See the returned example image

Expected behavior

The custom domain should be used instead of original assets domain

Test environment

Simply007 commented 2 years ago

Related to #334