Static generator is removing the allowfullscreen attribute when generating YouTube embeds.

Created on 21 July 2025, 4 months ago

Problem/Motivation

Static generator only retains certain YouTube embed attributes when generating YouTube iframes. This is causing YouTube embeds that allow fullscreen functionality to not allow it on the statically generated version of the page.

Steps to reproduce

  1. Embed a YouTube iframe with the "allowfullscreen" attribute
  2. Confirm the fullscreen button works on the embedded video on the Drupal site
  3. Statically generate the page
  4. The fullscreen button will appear disabled on the statically generated version of the page

Proposed resolution

Update the YouTube generation in StaticGenerator.php

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vetchneons

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024