-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript "mixins" doesn't works if 'urlArgs' is in requirejs-config.js #8221
Comments
@azanelli thank you for your report. |
@veloraven Magento 2.1.2 |
@veloraven I have the same issue with a order comment module. I'm using Magento 2.1.0. |
https://github.com/magento/magento2/blob/develop/lib/web/mage/requirejs/mixins.js#L116 URL augments should be removed in path variable. Otherwise, it won't match the key in requirejs-config.js. I think that's why mixins config gets fail when RequireJS defined urlArgs. |
Thanks for the tip. Had the same problem when using urlArgs: "bust=2017-02-23" in Magento_Theme/templates/page/js/require_js.phtml Fooman GoogleAnalyticsPlus wasn't working due to this problem. My fix for lib/web/mage/requirejs/mixins.js is :
that seems to fix it. |
I'm having the same issue on magento 2.1.6. Any updates on this ? |
Internal ticket to track issue progress: MAGETWO-69674 |
@azanelli, thank you for your report. |
Preconditions
Steps to reproduce
VendorName/MyModule
requirejs-config.js
file with this content:hook.js
file:Expected result
hook.js
should be loaded and we should se the string "This is hook.js" printed in the javascript's consoleActual result
hook.js
is not loaded and we do not see the string in the javascript's consoleNotes
'urlArgs': "b=1"
from therequirejs-config.js
file all it works fine andhooks.js
will be loaded.The text was updated successfully, but these errors were encountered: