Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would it be possible to add this patch? It adds www. to the base_url in the MediaYouTubeStreamWrapper class. The address without the www. points to a 301 that redirects to http://www.youtube.com/watch, this patch fixes that.
Just a small thing i noticed.
Comment | File | Size | Author |
---|---|---|---|
media_youtube_add_www_to_base_url.patch | 798 bytes | Rob C | |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedComment #2
Devin Carlson CreditAttribution: Devin Carlson commentedTested #1 and confirmed that the original URL resulted in a 301 redirect and that the updated redirect no longer resulted in a redirect and still allowed videos to load and play properly.
Committed to Media: YouTube 7.x-2.x.
Comment #3
Rob C CreditAttribution: Rob C commentedNice!