Community Cookie Consent allows you to display a cookie notice to your customers and gain their consent when they use your community. You can configure the cookies and categories directly in Salesforce and use those to drive the user interface.
(1) Defect fix for "Reject" button
Current behaviour: The Reject button should prevent access to the application as Experience Cloud cookies are essential to operation. Currently the button click navigates to 'history.back'. This approach does not work if the user navigates to another portal page and then clicks Reject.
Updated behaviour: Force navigation to a blank page
[cookieConsent.js]
(2) Links to Privacy Policy and Cookies page open in a new window
Parameterised the target so that developer can pick a blank page (_blank) or to replace the current page (_self)
[cookieConsent.js, cookieConsent.js-meta.xml]
Enhancements to support UK DPC project (2 Feb 23)
(1) Defect fix for "Reject" button Current behaviour: The Reject button should prevent access to the application as Experience Cloud cookies are essential to operation. Currently the button click navigates to 'history.back'. This approach does not work if the user navigates to another portal page and then clicks Reject. Updated behaviour: Force navigation to a blank page [cookieConsent.js]
(2) Links to Privacy Policy and Cookies page open in a new window Parameterised the target so that developer can pick a blank page (_blank) or to replace the current page (_self) [cookieConsent.js, cookieConsent.js-meta.xml]