From 69893849cafcd117a7cee59113b9a6e7baf53dc5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 13 Oct 2014 14:04:19 +0100 Subject: [PATCH] Don't pass the hash when routing an empty search query Fixes #793 --- app/assets/javascripts/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index c066f8961..a259954f2 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -337,7 +337,7 @@ $(document).ready(function () { if (query) { OSM.router.route("/search?query=" + encodeURIComponent(query) + OSM.formatHash(map)); } else { - OSM.router.route("/" + OSM.formatHash(map)); + OSM.router.route("/"); } }); -- 2.39.5