Skip to content
This repository was archived by the owner on Apr 15, 2021. It is now read-only.

Conversation

taylordaughtry
Copy link

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This updates the checkContent to make sure it's okay with the additional URL parameters...

@AndrewMarkUK
Copy link

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
Copy link

deannaw commented Dec 15, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants