Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If the popup link contains fragment eg 'privacy/#cookie'
Rather than try to handle this during the hook_init I've included a patch that will check the URL at the configuration form validation, and throw an error message with a suggested valid URL.
Comment | File | Size | Author |
---|---|---|---|
#2 | eu-cookie-compliance-privacy-link-fragment-2173733-2.patch | 1.26 KB | gavin.hughes |
#1 | eu-cookie-compliance-privacy-link-fragment-2173733-1.patch | 1.01 KB | gavin.hughes |
Comments
Comment #1
gavin.hughes CreditAttribution: gavin.hughes commentedComment #2
gavin.hughes CreditAttribution: gavin.hughes commentedComment #3
gavin.hughes CreditAttribution: gavin.hughes commentedUpdated patch to address coding standards :-)
Comment #4
svenryen CreditAttribution: svenryen commentedThank you! I've added the patch to v1.13