Skip to content

Commit 4a3f3ee

Browse files
sertlabsta1r
authored andcommitted
Merged PR 18567: Remove escape for WBT id
## What's being changed We're removing the call to `escapeJs()` in the web behaviour tracking template. ## Why it's being changed `escapeJs()` was breaking the id to be sent to EC. ## How to review / test this change - Set a breakpoint in L5 of the template - Reload the home page - Confirm that the ID is correctly formed Related work items: #105176
1 parent f742863 commit 4a3f3ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/templates/email/web_behavior_tracking.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
/** @var /Dotdigitalgroup/Email/Block/WebBehavior $block */
33
?>
44
<script type="text/x-magento-init">
5-
{"*": {"Dotdigitalgroup_Email/js/webBehaviorTracking": {"id": "<?= $block->escapeJs($block->getProfileId()); ?>"}}}
5+
{"*": {"Dotdigitalgroup_Email/js/webBehaviorTracking": {"id": "<?= $block->getProfileId(); ?>"}}}
66
</script>

0 commit comments

Comments
 (0)