From adb36bc3393b3a48ce64757a10769385444cb3d3 Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Fri, 15 Mar 2024 17:55:06 -0400 Subject: [PATCH] oembed: update Document cloud oEmbed endpoint --- plugins/domains/documentcloud.org.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/domains/documentcloud.org.js b/plugins/domains/documentcloud.org.js index 5d4194877..7d2b0cf50 100644 --- a/plugins/domains/documentcloud.org.js +++ b/plugins/domains/documentcloud.org.js @@ -81,7 +81,7 @@ export default { return cb(null, { oembedLinks: ['json', 'xml'].map(function (format) { return { - href: `https://www.documentcloud.org/api/oembed.${format}?url=${uri}`, + href: `https://api.www.documentcloud.org/api/oembed.${format}?url=${encodeURIComponent(uri)}`, rel: 'alternate', type: `application/${format}+oembed` }