Patch (to be ported)
Project:
Video Embed Field
Version:
8.x-2.4
Component:
Video Embed Field (base module)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2022 at 20:52 UTC
Updated:
23 Apr 2026 at 16:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
koffer commentedI found a simple solution, if I change in URL the word shorts with a watch I can see a normal youtube player and embed the video in the field.
Comment #5
jelle_sI created a merge request that adds support for shorts, but also adds support for the url format
youtube.com/watch/<id>, where before onlyyoutube.com/watch?v=<id>was supported.Comment #6
sagesolutions commentedApplied patch and was able to enter YouTube shorts urls
Comment #7
astridp commentedHi! I am facing the same issue with Drupal not finding a URL provider for youtube shorts videos and the suggested changes in the URL have not helped.
Could someone explain what applying patch means? Are there any other ways to deal with this issue?
Thanks!!
Comment #8
binnythomas commentedI am adding the changes found in the MR as a patch to be used by composer till it is merged.
Comment #9
jelle_s@binnythomas To make your life easier in the future: you can add
.diffat the end of the MR url to use it with composer as well (it will then automatically incorporate new changes made to the MR as well)Comment #10
dabbor commentedHi @Jelle_S,
That is exactly why I asked Binny to add the patch in here as the use of the
.diffas https://git.drupalcode.org/project/video_embed_field/-/merge_requests/4.... is from what I know considered unsafe as it might change as you've described.Such a change might result in break of automated build or so in your CI system.
Comment #11
laura.gatesI don't this this patch works for drupal 10.1. It still applies an accepts the shorts url. However, it won't actually play the video - instead the player directs you to view the video on YouTube.
Comment #12
runzipel commentedyou can try https://www.youtube.com/watch?v=xyz. xyz is the youtube video id which is the last part of the url. so you have to change https://www.youtube.com/shorts/xyz to https://www.youtube.com/watch?v=xyz. good luck
Comment #13
arthur.baghdasar commentedWorks for me
Comment #14
arthur.baghdasar commentedComment #15
arthur.baghdasar commentedComment #16
arthur.baghdasar commentedUpdated the tests.
Comment #23
dabbor commentedI made a 3.x version of this issue: https://www.drupal.org/project/video_embed_field/issues/3509552 and just transfered MR and patch to be compatible with 3.x version.
Comment #24
mably commentedFixed in 3.0.x-dev branch.
Comment #25
pfrenssenThis has been fixed in the 3.0.x branch in #3509552: Support youtube shorts 3.x. Let's make sure to include the unit test from that fix here too.
Comment #26
md2 commented