Own workaround:
if(document.domain=='localhost') { var root_url = 'http://localhost/ project/'; } else { var root_url = 'http://www.mydomain.com/inprog/ project'; } $("#content_main a:not(.external)").attr('href', function() { orig_url = $(this).attr('href'); if(orig_url.substring(0,4)=='http') { orig_url = orig_url.substr (root_url.length,orig_url.length); } // IE Fix return path_prefix + orig_url; });