From 64b92c2d9ca8c12cade0cfe915ef23575aafa59b Mon Sep 17 00:00:00 2001 From: Hayden Date: Wed, 17 Jun 2020 16:04:17 -0700 Subject: [PATCH] Update leaflet-hash.js allow location to have addition pathname --- leaflet-hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } },