Contact Us 1-800-596-4880

Broken Images on Documentation Pages

Images uploaded to Exchange with the Markdown editor are stored in Exchange.

If your community shows a broken image on an API documentation page, and the image displays correctly on the API documentation page in Exchange, follow these steps:

  1. If the image is stored in Exchange, make the Exchange API version asset public so the image can be rendered in your community.

  2. If the image is stored on a web location outside Exchange, such as S3 or Dropbox:

    1. Open Salesforce setup.

    2. Open your community’s content security policy (CSP) trusted sites list.

    3. Ensure that the list includes the image site domain.

    4. Because some file-sharing services resolve URLs through multiple redirects, ensure that the list includes the domain of the final URL.

To learn if any content in any component or page of the community is blocked by the content security policy:

  1. Open the API Community Manager control panel.

  2. Click Community Builder.

  3. Click Preview.

  4. Open the page that contains the content.

To inspect the URLs the browser loads when rendering a community page, use the browser developer tools.