diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js index bf25787a2..0b64bfec2 100644 --- a/src/node/utils/Minify.js +++ b/src/node/utils/Minify.js @@ -113,6 +113,13 @@ const minify = async (req, res) => { return; } + // Backward compatibility for plugins that were written when jQuery lived at + // src/static/js/jquery.js. + if (['js/jquery.js', 'plugins/ep_etherpad-lite/static/js/jquery.js'].indexOf(filename) !== -1) { + logger.warn(`request for deprecated jQuery path: ${filename}`); + filename = 'js/vendors/jquery.js'; + } + /* Handle static files for plugins/libraries: paths like "plugins/ep_myplugin/static/js/test.js" are rewritten into ROOT_PATH_OF_MYPLUGIN/static/js/test.js, diff --git a/src/node/utils/tar.json b/src/node/utils/tar.json index 63944f850..04ac8604e 100644 --- a/src/node/utils/tar.json +++ b/src/node/utils/tar.json @@ -82,4 +82,5 @@ , "pluginfw/shared.js" , "pluginfw/hooks.js" ] +, "jquery.js": ["jquery.js"] }