- Issue created by @Ben Young
- Status changed to Closed: duplicate
11 months ago 1:55pm 22 January 2024 - 🇬🇧United Kingdom Ben Young
My bad, duplicate of https://www.drupal.org/node/3317344 →
When using Disable Javascripts with entries like:
external:https://www.googletagmanager.com/gtag/js?id=EXAMPLE
These lines are handled in eu_cookie_compliance_js_alter() without the category (here "external:") being stripped off the URL first, resulting in the JS file not being stripped out from the page as the array_key_exists() doesn't find a match against the prepared JS scripts from Drupal.
Configure consent categories and try to use "Disable the following JavaScripts when consent isn't given" as above, then visit a page.
Process the JS URL before array_key_exists(). PR to follow...
Closed: duplicate
1.43
Code
My bad, duplicate of https://www.drupal.org/node/3317344 →