Iubenda cookie solution replaces link for embedded iframe Youtube videos

Created on 8 August 2025, about 1 month ago

Problem/Motivation

In version 5.0.0-alpha1 and 4.0.4 (the ones i tried) the Iubenda Cookie Solution link replaces the link in the src="" of the iframes, but only for anonymous users.

This is a snippet of the html of a page with a video with an anonymous user

This is how it looks for an administrator, and how it should look

This is the code that generates the video, in the .html.twig file

Steps to reproduce

Go to https://www.realcomm.it/it/azienda or https://www.realcomm.it/it/piano-nazionale-industria-40 with any browser, both pages have a video that doesn't work.

🐛 Bug report
Status

Active

Version

5.0

Component

User interface

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @thatfinegentleman
  • 🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI

    Hi @thatfinegentleman, there isn't any snippet in the issue's description.

    Anyway, when you are logged in as admin, are you sure you do not have the following _iub* cookies already saved?

  • 🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI

    Hi @thatfinegentleman, there isn't any snippet in the issue's description.

    Anyway, when you are logged in as admin, are you sure you do not have the following _iub* cookies already saved?

  • To answer comment #2, yes, i do have the cookies saved.
    And this are the snippets missing from my issue:
    This is a snippet of the html of a page with a video with an anonymous user

    This is how it looks for an administrator, and how it should look

    This is the code that generates the video, in the .html.twig file

    To answer comment #3
    so the src is supposed to be replaced by iubenda? then how come the embedded video doesn't work?

  • I have noticed that in another website i administrate (which uses WordPress, not Drupal) my leaflet map that i embedded is not being shown beacuse its code is being replaced by that of the Iubenda Cookie Banner, like the videos in my Drupal site.

  • I just now learned that it's how the Authomatic Blocking System for scripts is supposed to work, so the issue is nonexistent

  • Now that this issue is closed, please review the contribution record.

    As a contributor, attribute any organization helped you, or if you volunteered your own time.

    Maintainers, please credit people who helped resolve this issue.

Production build 0.71.5 2024