Skip to content

Commit 40e2672

Browse files
committed
ENGCOM-1703: Move breadcrumb json configuration to viewmode (fix double quotes)
1 parent 74ab8c3 commit 40e2672

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/ViewModel/Product/Breadcrumbs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ public function getProductName()
104104
*/
105105
public function getJsonConfiguration()
106106
{
107-
return $this->json->serialize([
107+
return $this->escaper->escapeHtml($this->json->serialize([
108108
'breadcrumbs' => [
109109
'categoryUrlSuffix' => $this->escaper->escapeHtml($this->getCategoryUrlSuffix()),
110110
'userCategoryPathInUrl' => (int)$this->isCategoryUsedInProductUrl(),
111-
'product' => $this->escaper->escapeHtml($this->getProductName())
111+
'product' => $this->getProductName()
112112
]
113-
]);
113+
]));
114114
}
115115
}

0 commit comments

Comments
 (0)