-
Notifications
You must be signed in to change notification settings - Fork 37
Description
After upgrading from 3.1.6 -> 3.2.1, any YouTube embeds we had seemed to be broken - but unusually only on 'live' environments, local DDEV seemed fine.
Locally, on 3.2.1, the TWIG .render method would output the following:
<iframe width="200" height="113" src="https://www.youtube.com/embed/_HWRGKfSq3A?enablejsapi=1&feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" title="Jose Gonzalez - Stay Alive | The Secret Life of Walter Mitty"></iframe>
Whereas on our staging environment, with the same video URL, it'd output the following:
<iframe src="https://www.youtube.com/watch?enablejsapi=1&v=_HWRGKfSq3A"></iframe>
Both were using the exact same URL:
https://www.youtube.com/watch?v=_HWRGKfSq3A
Aside from the frontend being broken, the video preview under fields using URLs in this format also seemed broken (loading the entire YouTube page rather than just the video).
Downgrading to 3.1.6 seems to fix the issue, both frontend and in the CMS.