From c205e3236a0f74adf01421deaa84b311876ddaee Mon Sep 17 00:00:00 2001 From: hkernbach Date: Tue, 9 Feb 2016 14:26:30 +0100 Subject: [PATCH] workaround for index modules --- .../system/_admin/aardvark/APP/frontend/js/shell/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/shell/browser.js b/js/apps/system/_admin/aardvark/APP/frontend/js/shell/browser.js index e6fa4e2408..bbd33d37dd 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/shell/browser.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/shell/browser.js @@ -166,6 +166,10 @@ Module.prototype.define = function (path, definition) { // first get rid of any ".." and "." path = this.normalise(path); + var match = path.match(/(.+)\/index$/); + if (match) { + path = match[1]; + } // check if you already know the module, return the exports if (! Module.prototype.moduleCache.hasOwnProperty(path)) {