Skip to content

Commit

Permalink
fix autoescaping of & in url_suffix (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkabat authored Nov 10, 2021
1 parent 7a4b50c commit 393584c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/views/tagmanager_body.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ id }}{{ url_suffix }}"
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ id }}{{ url_suffix|raw }}"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
2 changes: 1 addition & 1 deletion Resources/views/tagmanager_head.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl+'{{ url_suffix }}';f.parentNode.insertBefore(j,f);
'https://www.googletagmanager.com/gtm.js?id='+i+dl+'{{ url_suffix|raw }}';f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','{{ id }}');</script>
<!-- End Google Tag Manager -->

0 comments on commit 393584c

Please sign in to comment.