Skip to content

Commit

Permalink
oembed: update Document cloud oEmbed endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Mar 15, 2024
1 parent 964eafa commit adb36bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/domains/documentcloud.org.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
Expand Down

0 comments on commit adb36bc

Please sign in to comment.