Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDPR compliance youtube-nocookie breaks rel=0 #53

Closed
jpwdesigns opened this issue Sep 5, 2020 · 4 comments
Closed

GDPR compliance youtube-nocookie breaks rel=0 #53

jpwdesigns opened this issue Sep 5, 2020 · 4 comments

Comments

@jpwdesigns
Copy link

When the youtube embed happens and the URL is changed to youtube-nocookie.com it does not apply the rel=0 parameter.

@jpwdesigns
Copy link
Author

Template code:

    {{ block.video.render({
          params: {
              autoplay: 0,
              rel: 0,
              mute: 0,
              loop: 0,
              autopause: 0,
          }
      })
    }}

Rendered html:

<iframe width="480" height="270" src="https://www.youtube-nocookie.com/embed/XXXXXX?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

Expected html:

<iframe width="480" height="270" src="https://www.youtube-nocookie.com/embed/XXXXXX?feature=oembed&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>

@reganlawton
Copy link
Member

Hmm thats weird and this DOES work when not GDPR turned on?

@jpwdesigns
Copy link
Author

I'm not sure. I have yet to see it work correctly

@reganlawton
Copy link
Member

@jpwdesigns This is resolved in v1.3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants