Skip to content

Commit 3eab11f

Browse files
[BP][FIX] website_cookiefirst: remove www. prefix from domain in cookiefirst script URL
- back ported from V17 PR (#1117)
1 parent 8fd7fa0 commit 3eab11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website_cookiefirst/views/portal_template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<xpath expr="//script[last()]" position="after">
2020
<t t-if="website.cookiefirst_identifier and website.domain">
2121
<script
22-
t-attf-src="https://consent.cookiefirst.com/sites/{{ (website.domain or '').replace('http://', '').replace('https://', '') }}-{{ website.cookiefirst_identifier }}/consent.js"
22+
t-attf-src="https://consent.cookiefirst.com/sites/{{ (website.domain or '').replace('http://', '').replace('https://', '').replace('www.', '') }}-{{ website.cookiefirst_identifier }}/consent.js"
2323
/>
2424
</t>
2525
</xpath>

0 commit comments

Comments
 (0)