Skip to content

Commit 8dcd0a7

Browse files
authored
Merge pull request #5088 from magento-borg/MC-29377
[CIA] Bug fixes
2 parents 67a47c9 + 6e13fa8 commit 8dcd0a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Customer/view/frontend/templates/js/customer-data.phtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
*/
66

77
/** @var \Magento\Customer\Block\CustomerData $block */
8+
9+
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
810
?>
911
<script type="text/x-magento-init">
1012
{
1113
"*": {
1214
"Magento_Customer/js/customer-data": {
13-
"sectionLoadUrl": "<?= $block->escapeJs($block->escapeUrl($block->getCustomerDataUrl('customer/section/load'))) ?>",
15+
"sectionLoadUrl": "<?= $block->escapeJs($block->getCustomerDataUrl('customer/section/load')) ?>",
1416
"expirableSectionLifetime": <?= (int)$block->getExpirableSectionLifetime() ?>,
1517
"expirableSectionNames": <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getExpirableSectionNames()) ?>,
1618
"cookieLifeTime": "<?= $block->escapeJs($block->getCookieLifeTime()) ?>",
17-
"updateSessionUrl": "<?= $block->escapeJs($block->escapeUrl($block->getCustomerDataUrl('customer/account/updateSession'))) ?>"
19+
"updateSessionUrl": "<?= $block->escapeJs($block->getCustomerDataUrl('customer/account/updateSession')) ?>"
1820
}
1921
}
2022
}

0 commit comments

Comments
 (0)