I have an issue using the Video Embed Field in my Drupal 7 setup.

I have published quite a few youtube videos that I would like displayed in a colorbox window (not all at once).
The issue is this that the Video Embed Field generates the URL as http://domain.com/. If I go to http://domain.com and click on the link it works. But if I go to http://www.domain.com and click on the link it can't display the content and I receive a Cross Domain Request error. I have tried to install CORS but I can't get it working. Not sure if there is anything else I have to do for that.

But my question is this. Is there a way to rewrite the URL to what the browser says so it won't matter if its www.domain.com or domain.com.

CommentFileSizeAuthor
#2 relative_path-2390037-2.patch458 bytesplopesc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dudeonthebayou’s picture

Issue summary: View changes
plopesc’s picture

Status: Active » Needs review
FileSize
458 bytes

Hey @dudeonthebayou

Could you test this patch?

Thank you!

dudeonthebayou’s picture

@plopesc, thank you it works on both http://www.domain.com and http://domain.com now.

  • plopesc committed 4a63918 on 7.x-2.x
    Issue #2390037 by plopesc, dudeonthebayou: Video with Colorbox domain...
plopesc’s picture

Status: Needs review » Fixed

Committed. Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.