Document why this hack is only applied in a limited set of situations;
(Closes #3478)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user