• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Broken media tag causes redirect to YouTube

Sticking this in our forum:
[media=youtube] [/media[/media]
... causes the page with that message in it to be re-directed to YouTube. It even happens so fast it's sometimes hard to catch-it in order to edit / deal with the message.


XenForo developer
Staff member
This happens when you use the iframe version of the embed. I think this is actually a YT bug. Not sure what we can do about it yet...


XenForo moderator
Staff member
Try this:
<object width="640" height="385" data="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash">
<param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="640" height="385" />


XenForo developer
Staff member
I've done a hacky workaround for this by stripping out / from YouTube links specifically (as other sites may need it). Hopefully they'll fix it though so I can remove it.