BUG :: $.breeze.url helper is not working since latest breeze release #296
-
Hi @vovayatsyuk We have noticed that $.breeze.url helper is not working since the latest breeze updates. Also, we have noticed that the it works when the JS merge is enabled, BUT does not work when JS merge is disabled. How can we overcome this or something fundamental has been change? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Yes, this js was moved to dynamic. You need to update your code similar to Luma: define(['mage/url'], (url) => {
// not you can use url.build
url.build()
// p.s. $.breeze.url will be available here too
}); |
Beta Was this translation helpful? Give feedback.
-
Hi @vovayatsyuk I'm still confused, below is the script I've created for leafleatjs, but not sure how to inject 'define(['mage/url'], (url) => {' ? FilePath: app/code/LeafletJs/LeafletJs/view/frontend/web/js/script.js
|
Beta Was this translation helpful? Give feedback.
Yes, this js was moved to dynamic. You need to update your code similar to Luma: