From f8e3ab33e48069f2d66e51022c04b7ef3c3c8fb0 Mon Sep 17 00:00:00 2001 From: maslke Date: Fri, 21 Jul 2017 12:01:22 +0800 Subject: [PATCH] Update Util.js,fix a bug function createUrlObject does not work in ie8 when your page was opened by window.showModalDialog.It links port and web context directly,lacks of '/' --- lib/OpenLayers/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 3ae0ce42ac..0cdaad86d3 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -1371,7 +1371,7 @@ OpenLayers.Util.createUrlObject = function(url, options) { // relative to current path var parts = loc.pathname.split("/"); parts.pop(); - url = fullUrl + parts.join("/") + "/" + url; + url = fullUrl + '/' + parts.join("/") + "/" + url; } }