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 has been 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 %>
The text was updated successfully, but these errors were encountered:
garmoncheg
changed the title
Oembed URL with international characters leads to 400
oEmbed URL with international characters leads to 400
Oct 15, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.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 %>
The text was updated successfully, but these errors were encountered: