Skip to content

Image Url Domain #10235

@Mihai-Sprinceana

Description

@Mihai-Sprinceana

imageUrl = apiEndpoint + imageUrl;

After we integrated Contentful with Sap Commerce Cloud everything is working except the displaying of the images, because our API's are returning the image with the full url eg: https://static.test.com/media/123 and the logic above is adding the api domain in front of the url resulting in a image url: https://api.test.com/https://static.test.com/media/123

Do you think we can add a check there to see if it already a full url and in this case not append the api domain ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions