greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
66 stars 27 forks source link

PLANET-5386 YouTube embed: URL parameters not working #93

Closed planet-4 closed 3 years ago

planet-4 commented 3 years ago

It's common practice to add ?rel=0 parameter to YT URLs to prevent YouTube from showing related/suggested video from another YT channel (other than our own) when a video ends. However this does not work when using the YT or Embed blocks.

The editor must chose between allowing YT suggested videos and retain the full-width/responsive height design OR suppress the suggested videos by using the HTML block w/ YT's embed code and give up the full-screen/responsive height design.

Screenshots

Screenshot

Reporter: ktolen
Sections: Gutenberg

Potentially affected repositories: planet4-master-theme

comzeradd commented 3 years ago

Fixed at https://github.com/greenpeace/planet4-master-theme/pull/1258