Codeinwp / Nivo-Lightbox-jQuery

A simple, flexible, responsive, retina-ready jQuery lightbox plugin.
http://dev7studios.com/nivo-lightbox
MIT License
157 stars 87 forks source link

Updates JS to allow YouTube URL Parameters #40

Open taylordaughtry opened 9 years ago

taylordaughtry commented 9 years ago

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

AndrewMarkUK commented 9 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.

deannaw commented 7 years ago

The current code doesn't resolve this issue. Any suggestions?