Skip to content

Commit

Permalink
[UI] - Fix image load for magento image urls (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-narayana-klevu committed Jun 6, 2024
1 parent 079913c commit aa83fb5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,10 @@ export class KlevuProduct {
class="image"
part="product-image"
style={{
backgroundImage: `url(${imageUrl})${fallback}`,
backgroundImage: `url(${imageUrl}), url(${imageUrl.replace("needtochange/", "")}), url(${imageUrl.replace(
"needtochange/",
"pub/"
)})${fallback}`,
}}
>
{this.hideHoverImage !== true && this.product?.imageHover ? (
Expand Down

0 comments on commit aa83fb5

Please sign in to comment.