Merge branch 'master' of github.com:openlayers/openlayers

This commit is contained in:
Christopher Schmidt
2011-09-19 21:33:16 -04:00

View File

@@ -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;