diff --git a/app/assets/javascripts/discourse-plugins/index.js b/app/assets/javascripts/discourse-plugins/index.js index 74fea7f45f3..0b68baac3d1 100644 --- a/app/assets/javascripts/discourse-plugins/index.js +++ b/app/assets/javascripts/discourse-plugins/index.js @@ -56,10 +56,10 @@ function unColocateConnectors(tree) { }); } -function namespaceModules(tree, pluginDirectoryName) { +function namespaceModules(tree, pluginName) { return new Funnel(tree, { getDestinationPath: function (relativePath) { - return `discourse/plugins/${pluginDirectoryName}/${relativePath}`; + return `discourse/plugins/${pluginName}/${relativePath}`; }, }); }