Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.57k stars 797 forks source link

WordAds: issues dismissing the GDPR Consent Management banner #36579

Closed FranzHabegger closed 3 months ago

FranzHabegger commented 3 months ago

Impacted plugin

Jetpack

Quick summary

Wordpress Plugin Jetpack with Wordpress WordAds: The Cookies & Consent Banner is showing every page. On click Accept nothing happens. On the next page the Banner is also showing. Look at www.smartinfo.me/blog

Steps to reproduce

  1. on visit the wordpress site www.smartinfo.me the cookie banner is showing
  2. on klick Accept cookies the wordpress file admin-ajax.php is calling.
  3. the js file cmp.bundle.js calls this: https://smartinfo.me/wp-admin/admin-ajax.php
  4. wordpress is on folder /blog/ installed
  5. the link to admin-ajax.php after klick ok in cookie banner is wrong
  6. Now the cookies not set und banner is showing on every page

A clear and concise description of what you expected to happen.

Please help how can i fix this bug. Screenshot: https://smartinfo.me/cookiebanner.png

What actually happened

No response

Impact

One

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

jeherve commented 3 months ago

the link to admin-ajax.php after klick ok in cookie banner is wrong

That seems to be the source of the problem on your site. Could you tell us more about your site setup?

Thank you!

jeherve commented 3 months ago

cc @Alameen688 and @cphilleo who worked on #35165 ; you may have to make changes to how the AJAX URL is built in the CMP script so it uses the site URL defined on the site.

Thank you!

Alameen688 commented 3 months ago

Thanks a lot, @jeherve.

Thanks for reporting @FranzHabegger, this issue has been fixed and the banner should work correctly on your site now.