diff --git a/src/runtime/javascript/minibar/support.js b/src/runtime/javascript/minibar/support.js index 03757173d..f6c7d7dc6 100644 --- a/src/runtime/javascript/minibar/support.js +++ b/src/runtime/javascript/minibar/support.js @@ -90,7 +90,9 @@ function ajax_http_get_json(url,cont) { } function sameOrigin(url) { - return hasPrefix(url,location.protocol+"//"+location.host+"/"); + var a=empty("a"); + a.href=url; // converts to an absolute URL + return hasPrefix(a.href,location.protocol+"//"+location.host+"/"); } // Use AJAX when possible, fallback to JSONP