Our Vimeo oEmbed template logic will throw on build/deployment, if editors enter an invalid source URL in the CMS. We should construct it in such a way that the site still builds and the editor then sees a broken video embed.
This template code in embed-video.html fails if the source URL does not contain valid Vimeo link structure, like e.g. https://vimeo.com/foo/barf
{{- with getJSON "https://vimeo.com/api/oembed.json?url=https://vimeo.com/" $video_id }}
Our Vimeo oEmbed template logic will throw on build/deployment, if editors enter an invalid source URL in the CMS. We should construct it in such a way that the site still builds and the editor then sees a broken video embed.
This template code in
embed-video.html
fails if the source URL does not contain valid Vimeo link structure, like e.g. https://vimeo.com/foo/barf