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

Improve handling of unlisted Vimeo videos #2986

Merged
merged 2 commits into from
Aug 12, 2019

Conversation

westonruter
Copy link
Member

Vimeo has the ability to create unlisted videos: https://vimeo.com/blog/post/share-unlisted-videos-with-private-links/

Such videos have URLs like: https://vimeo.com/172355597/abcdef0123

The AMP plugin was erroneously turning this into the following:

<p><amp-vimeo data-videoid="abcdef0123" layout="responsive" width="600" height="338"></amp-vimeo></p>

And this was causing an AMP validation error, because the video ID has to consist of digits only. But here the secret video key was erroneously being provided as the ID.

Now, it's likely that this will still result in the Vimeo unlisted video being unviewable, since the unlisted key is just dropped. Nevertheless, it's somewhat better than having an AMP validation error.

@westonruter westonruter added this to the v1.2.1 milestone Aug 7, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label Aug 7, 2019
@westonruter
Copy link
Member Author

I've reported the issue upstream as well: ampproject/amphtml#23804

@swissspidy swissspidy merged commit ea9e6fb into develop Aug 12, 2019
@swissspidy swissspidy deleted the fix/unlisted-vimeo-url-handling branch August 12, 2019 11:19
westonruter added a commit that referenced this pull request Aug 12, 2019
…p-bind-syntax

* 'develop' of github.com:ampproject/amp-wp:
  RTLCSS all the things (#2977)
  Fix AMP Story editor compatibility with code editor (#3007)
  Update dependency core-js to v3.2.1 (#3011)
  Update amphtml validator spec to v1907301630320 (#3003)
  Improve handling of unlisted Vimeo videos (#2986)
  Always hide AMP admin menu item and compatibility tool menu ite… (#3005)
  Update dependency dom-scroll-into-view to v2.0.1 (#3008)
  Hide tooltips that should be hidden (#2988)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Signed the Google CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants