In version 8.x-1.20-rc1:
- if the user accepts cookies and then later withdraws consent, the privacy button remains present allowing the user to change their mind and accept cookies again - ** this is good **
- if the user rejects cookies, the privacy settings button disappears after the page is reloaded (or they browse to another page) and so the user cannot change their mind and accept cookies again - **this not good**
In the previous version 8.x-1.19, if the "Enable floating privacy settings tab and withdraw consent banner" and "Enable floating privacy settings tab after withdrawing consent" options are enabled, the privacy settings button is always available even after the user rejects cookies or withdraws consent.
Steps to reproduce
- Enable the Opt-in option "Don't track visitors unless they specifically give consent"
- Enable the options "Enable floating privacy settings tab and withdraw consent banner" and "Enable floating privacy settings tab after withdrawing consent"
- When the cookie consent banner pops-up, reject cookies
- Refresh the page
- The privacy setting button is no longer present
Issue fork eu_cookie_compliance-3305719
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3305719-privacy-settings-tab
changes, plain diff MR !96
- 8.x-1.x
changes, plain diff MR !95
Comments
Comment #2
glugmeister commentedI think the issue might be caused by this condition not being fired at line 174 of eu_cookie_compliance.js:
I wonder why the last part of the condition
&& !versionChangedis included? If it is removed, it fixes the issue ...So in other words, if:
and cookie agreed version hasn't changedthen the pop-up consent banner is created (but not shown) and the privacy settings tab is present to toggle it. I'll submit a patch if this makes sense.
Comment #5
glugmeister commentedComment #8
svenryen commentedMakes sense. Thanks for the contribution!