You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
So example oEmbed url leading to 400 is generated like so: https://www.documentcloud.org/api/oembed.json?url=https%3A%2F%2Fwww.documentcloud.org%2Fdocuments%2F7203159-Joaqu%C3%ADn-El-Chapo-Guzm%C3%A1n-Appeal.html
I believe the solution should be similar to URL encoding this variable or there is something in underlying data logic maybe. <%= @oembeddable_resource.oembed_url %>
Problem: Meta oEmbed url is generated with wrong data in an international page. E.g.: https://www.documentcloud.org/documents/7203159-Joaquín-El-Chapo-Guzmán-Appeal.html
So example oEmbed url leading to 400 is generated like so:
https://www.documentcloud.org/api/oembed.json?url=https%3A%2F%2Fwww.documentcloud.org%2Fdocuments%2F7203159-Joaqu%C3%ADn-El-Chapo-Guzm%C3%A1n-Appeal.htmlI believe the solution should be similar to URL encoding this variable or there is something in underlying data logic maybe.
<%= @oembeddable_resource.oembed_url %>