if index.html try to load details.html, the map.js is attempted to be loaded from /js/details and not from /details/js/details.js
Solution a) check jquery load to load relative urls
Solution b) add project relative urls ( /details/js/details.js)
Solution c) add project absolute urls (//... or dynamically created absolute uris {{root}})
Solution d) implement require ('') or import, instead of
if project structure is:
and details.html has:
if index.html try to load details.html, the map.js is attempted to be loaded from /js/details and not from /details/js/details.js
Solution a) check jquery load to load relative urls Solution b) add project relative urls ( /details/js/details.js) Solution c) add project absolute urls (//... or dynamically created absolute uris {{root}}) Solution d) implement require ('') or import, instead of