diff --git a/leaflet-hash.js b/leaflet-hash.js index 70a1007..535add3 100644 --- a/leaflet-hash.js +++ b/leaflet-hash.js @@ -87,7 +87,7 @@ var hash = this.formatHash(this.map); if (this.lastHash != hash) { - location.replace(hash); + location.replace(location.pathname + hash); this.lastHash = hash; } },