Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page reload on grant #157

Closed
Make66 opened this issue Nov 25, 2024 · 2 comments
Closed

Page reload on grant #157

Make66 opened this issue Nov 25, 2024 · 2 comments
Labels
wontfix This will not be worked on

Comments

@Make66
Copy link

Make66 commented Nov 25, 2024

There is this feature of page-reload-on-revoke (plugin.tx_cookieconsent.settings.reloadOnRevoke).
My usecase is built the other way around: reloadOnGrant.
There is no cookie coming where I might attach the script to be loaded. Only a page-reload does help.
Is there a feature I did oversee?
I could hack dp_cookieconsent.js and add some JS to it, but I bet there is a more elegant way of a page-reload on grant?

@Make66
Copy link
Author

Make66 commented Dec 1, 2024

Researching the events (see docs) seemed helpful. Unfortunately, "dp--cookie-revoke" IS fired, when I remove a checkbox, but it doesn't tell which one. So reading the cookie "dp_cookieconsent_status" from js and parsing the content looks like the solution.

@DirkPersky
Copy link
Owner

Hey, you could check the cookie, but essentially, that's what the page reload is for.
image
If everything is integrated correctly, the corresponding script won't be loaded afterward.

@DirkPersky DirkPersky added the wontfix This will not be worked on label Dec 21, 2024
@DirkPersky DirkPersky closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants