oembed encode the video URL and add the provider URL to it
the providers not understand the parameters in the URL like '?background=1&mute=0' and skip it because the encode function

test urls ( the url passed to provider api )
- the defulte url
https://vimeo.com/api/oembed.json?url=https%3A//player.vimeo.com/video/3...

- with the decode
https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/336...

Comments

Firass Ziedan created an issue. See original summary.

firass.ziedan’s picture

Status: Active » Needs work
firass.ziedan’s picture

Assigned: firass.ziedan » Unassigned
Status: Needs work » Needs review
StatusFileSize
new847 bytes

Status: Needs review » Needs work
firass.ziedan’s picture

Status: Needs work » Needs review
StatusFileSize
new2.16 KB
rajab natshah’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed 6a2df26 on 8.8.x
    Issue #3060550 by Firass Ziedan: oembed link does not pass the URL...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Good find. Patch looks great.

Committed/pushed to 8.8.x and cherry-picked to 8.7.x, thanks!

  • catch committed 2c4789c on 8.7.x
    Issue #3060550 by Firass Ziedan: oembed link does not pass the URL...

Status: Fixed » Closed (fixed)

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

mfb’s picture

This change actually breaks things for me, as I need the query parameters to be URL-encoded in order for things to work. Created a followup issue: #3397558: OEmbed generates URLs with URL-decoded query string