if (Prototype.Browser.WebKit) {
return this.getSafariState();
} else {
- return this.removeHash(unescape(location.hash));
+ return this.removeHash(decodeURIComponent(location.hash));
}
},
// Save this as our current location and change the browser location
this.currentLocation = newLoc;
- this.setLocation(escape(newLoc));
+ this.setLocation(encodeURIComponent(newLoc));
// Change the hidden iframe's location if on IE
if (Prototype.Browser.IE) {
}
// Get the new location
- this.setLocation(escape(newLoc));
+ this.setLocation(encodeURIComponent(newLoc));
// Notify listeners of the change
this.fireHistoryEvent(newLoc);