After upgrading Magento from version 2.4.6-p3 to 2.4.6-p6, I’m encountering an issue where JavaScript files are being loaded from incorrect paths at checkout.
In Magento 2.4.6-p6, the file is being attempted to load from:
https://baseurl.com/checkout/jquery.js
However, it should be loaded from:
https://baseurl.com/static/frontend/vendor/theme/en_GB/jquery.min.js
When I switch back to version 2.4.6-p3, the correct path is used. This issue is not limited to just this file; other JavaScript files are also showing similar errors.
What could be the reason for this change in the file path after the upgrade? How can I resolve this issue to ensure that the correct paths are used in Magento 2.4.6-p6?