I'm having an issue picking up three JavaScript files which handle some functionality on the Easy Edit interfaces:
www.domain.com/site_name/__data/asset_types/metadata_field_select/js/metadata_field_select.js
www.domain.com/site_name/__data/asset_types/metadata_field_multiple_text/js/metadata_field_multiple_text.js
www.domain.com/site_name/__data/asset_types/metadata_field_hierarchy/js/metadata_field_hierarchy.js
The site name is being appended to the URI and is not pointing to the root. As a result, 404 Not Found errors are being returned.
I've looked at the code and the URI part is being appended by EasyEdit.addSimpleEditScripts() in easyedit.js (see variable eesSiteURL):
addSimpleEditScripts: function () {
var headScripts = '';
headScripts += '' + '' + '';
headScripts += '<link href="' + eesSiteURL + '/__fudge/wysiwyg/core/htmlarea.css" rel="stylesheet" type="text/css" media="screen" />';
jQuery('head').append(headScripts);
}</pre><br />
The eesSiteURL variable is used elsewhere is easyedit.js and is causing an issue, e.g., with the loading icon when you switch between Edit and Preview (the missing image icon appears for a moment): see EasyEditOverlay.overlays.loading._getTemplate() in easyedit.js
Is this a bug? Any advice appreciated.
Jamie