Open taylordaughtry opened 10 years ago
With the changes applied above, instead of the YouTube link opening in lightbox, it now redirects to the corresponding YouTube page?
I rechecked the code and all is where it should be.
Just to clarify. Here's a href in my page;
Open Lightbox with YT Movie Inside
When I click this in the browser, it takes me directly to;
https://www.youtube.com/watch?v=tQ31O6YGdxM&feature=youtu.be&rel=0
So, the URL is changed completely.
The current code doesn't resolve this issue. Any suggestions?
The current JS strips the URL parameters from the YouTube link with RegEx. I updated the RegEx (and associated code) to store the parameters with the video array, and use them as appropriate in the Javascript.
This fixes issues #33 and #25