Closed gf-luka closed 1 year ago
Hi @gf-luka,
thanks for the hint, could you test if this works for you? See: 0a4164efc5412a713ef2f39750b50941023d5ae8
Greetings Daniel
Hi Daniel,
thank you for your fast reaction, this seems to work as expected. Perfect.
Thanks for yout work and greetings, Gianni
It seems that there is a bug with the integration of scripts.
If you are on a page where the m:consent ViewHelper is included and this should load a script, then this is always loaded as soon as any cookie option is allowed.
For example, on a page GoogleMaps should be loaded by m:consent ViewHelper. If you are on this page and any other cookie is allowed (e.g. "matomo"), the Google script is always loaded as well (see Network-Traffic). Even if you have not allowed this via the Consent buttons.
The error seems to be in the cookie_consent.js in the function replaceConsentButtons. There the data-scripts attributes are collected but at this point no longer checked for the cookieOption.
Best Regards, Gianni