From 9fc1cfc30fa48362f6b11edaaa6b834de14a4fc6 Mon Sep 17 00:00:00 2001 From: Christopher Schmidt Date: Mon, 19 Sep 2011 21:32:22 -0400 Subject: [PATCH] Document why this hack is only applied in a limited set of situations; (Closes #3478) --- lib/OpenLayers/Util.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 6d7681bf9b..77254cddff 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -1505,7 +1505,11 @@ OpenLayers.Util.createUrlObject = function(url, options) { } urlObject.args = OpenLayers.Util.getParameters(queryString); - //pathname (uniform browser behavior with leading "/") + // pathname + // + // This is a workaround for Internet Explorer where + // window.location.pathname has a leading "/", but + // a.pathname has no leading "/". urlObject.pathname = (a.pathname.charAt(0) == "/") ? a.pathname : "/" + a.pathname; return urlObject;