diff --git a/cigaradvisor/blocks/video/video.js b/cigaradvisor/blocks/video/video.js index 19712695..53574196 100644 --- a/cigaradvisor/blocks/video/video.js +++ b/cigaradvisor/blocks/video/video.js @@ -19,7 +19,7 @@ function embedYoutube(url, autoplay) { } function embedVimeo(url, autoplay) { - const [, video] = url.pathname.split('/'); + const video = url.pathname.split('/').at(-1); const suffix = autoplay ? '?muted=1&autoplay=1' : ''; return `