diff --git a/lib/plugins/system/htmlparser/nonHtmlContentData.js b/lib/plugins/system/htmlparser/nonHtmlContentData.js index f12c8a75f..101fd817b 100644 --- a/lib/plugins/system/htmlparser/nonHtmlContentData.js +++ b/lib/plugins/system/htmlparser/nonHtmlContentData.js @@ -27,7 +27,7 @@ export default { } else { return cb(null, { // link to original file URL to keep up with location changes (e.g. MP4) - href: /video\//i.test(nonHtmlContentType) && options.redirectsHistory ? options.redirectsHistory[0] : url, + href: /(?:video|image)\//i.test(nonHtmlContentType) && options.redirectsHistory ? options.redirectsHistory[0] : url, type: nonHtmlContentType.replace(/;.*$/i, ''), // Clean up codes from types like "video/mp4;codecs=avc1" - example: clourdinary, content_length: parseInt(nonHtmlContentLength, 10), rel: CONFIG.R.file