Skip to content

Commit 29d7701

Browse files
committed
Update to fix urlArgs problem corrupting the path when set in requirejs
1 parent e513ab5 commit 29d7701

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/web/mage/requirejs/mixins.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ define('mixins', [
114114
* @returns {Array} An array of paths to mixins.
115115
*/
116116
getMixins: function (path) {
117+
118+
// fix for when urlArgs is set
119+
if (path.indexOf('?')!=-1) {
120+
path=path.substring(0,path.indexOf('?'));
121+
}
122+
117123
var config = module.config() || {},
118124
mixins = config[path] || {};
119125

0 commit comments

Comments
 (0)