diff --git a/app/assets/javascripts/discourse/ember/resolver.js.es6 b/app/assets/javascripts/discourse/ember/resolver.js.es6 index b4cb4bd0d9b..edc98dff7c2 100644 --- a/app/assets/javascripts/discourse/ember/resolver.js.es6 +++ b/app/assets/javascripts/discourse/ember/resolver.js.es6 @@ -71,8 +71,10 @@ export default Ember.DefaultResolver.extend({ customResolve: function(parsedName) { // If we end with the name we want, use it. This allows us to define components within plugins. var suffix = parsedName.type + 's/' + parsedName.fullNameWithoutType, + dashed = Ember.String.dasherize(suffix), moduleName = Ember.keys(requirejs.entries).find(function(e) { - return e.indexOf(suffix, e.length - suffix.length) !== -1; + return (e.indexOf(suffix, e.length - suffix.length) !== -1) || + (e.indexOf(dashed, e.length - dashed.length) !== -1); }); var module;