This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Breaks Vimeo video URL in iframe #2498
Comments
Client requested to change the code - so no longer live on the site at the mentioned URL |
Using this regex |
Thanks @nate-thomas this does fix the issue with the script for me to |
Thanks @nate-thomas your regex worked for me. |
JacobTaylor-RCC
added a commit
to JacobTaylor-RCC/fancybox
that referenced
this issue
Jun 2, 2021
Fix taken from fancyapps#2498 and credit also to fancyapps#2532 for reporting this issue. Credit to @nate-thomas for the fix fancyapps#2498 (comment)
propertyhive
added a commit
to propertyhive/WP-Property-Hive
that referenced
this issue
Sep 29, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Using the fancyBox version v3.5.7, there are thumbnails wrapped inside a a tag with URLs of vimeo videos. When the link is clicked some videos load without any issues bus some return either an error from vimeo stating that the video is not available or play a completely different video, not even from the same user.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The vimeo regex
^.+vimeo.com\/(.*\/)?([\d]+)(.*)?
does not correctly extract the video ID, here are some of the vimeo video links on that pageWorks:
https://vimeo.com/418545272/d020d2e04a
https://vimeo.com/295539609
Does not work:
https://vimeo.com/295539609
https://vimeo.com/431430936/0b374fcb9c
https://vimeo.com/436521985/3c81242f6d
https://vimeo.com/329169729/1a5f18ea88
Screenshots
Desktop (please complete the following information):
Additional context
here is a code snipped from the page how the HTML and data attribiutes are set up:
<a href="https://vimeo.com/431431349/624d13bcb3" data-fancybox="video"><img src="http://montazstroj.skin29.net/wp-content/uploads/2020/05/912687767_295x166-12.jpg" alt=""></a>
The text was updated successfully, but these errors were encountered: