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.
Hello,
My idea here is instead of having only exclude paths option to have an option to choose to include or exclude that paths your are specifying. The use case here is that if for example I want to have the cookie control only visible on frontpage I need to add all available paths in the textarea and for example if the frontpage is node I cannot use for example "node/*" in this field.
I've made a patch for this so you can reverse the logic based on your needs.
Comment | File | Size | Author |
---|---|---|---|
#1 | cookiecontrol-path-restriction-logic-change-2038681.patch | 3.82 KB | skek |
cookiecontrol.patch.txt | 3.29 KB | skek |
Comments
Comment #1
skek CreditAttribution: skek commentedAdding an update hook to fix the backward compatibly.