From aaf6bab7c59037e5bb5438eac5c6e846b891c82f Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Thu, 13 Aug 2026 22:06:10 +0300 Subject: [PATCH] direct image: leave original link after redirect --- lib/plugins/system/htmlparser/nonHtmlContentData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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