Commit bf9f021f by lmf

修复 page builder 展示产品URL错位bug

parent 8dea0238
...@@ -162,7 +162,7 @@ class ImageFactory ...@@ -162,7 +162,7 @@ class ImageFactory
$data = [ $data = [
'data' => [ 'data' => [
'template' => 'Magento_Catalog::product/image_with_borders.phtml', 'template' => 'Magento_Catalog::product/image_with_borders.phtml',
'image_url' => $imageAsset->getUrl(), 'image_url' => strtr($imageAsset->getUrl(),'\\','/');
'width' => $imageMiscParams['image_width'], 'width' => $imageMiscParams['image_width'],
'height' => $imageMiscParams['image_height'], 'height' => $imageMiscParams['image_height'],
'label' => $this->getLabel($product, $imageMiscParams['image_type']), 'label' => $this->getLabel($product, $imageMiscParams['image_type']),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment