]> git.openstreetmap.org Git - rails.git/commitdiff
Don't pass the hash when routing an empty search query
authorTom Hughes <tom@compton.nu>
Mon, 13 Oct 2014 13:04:19 +0000 (14:04 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 13 Oct 2014 13:04:19 +0000 (14:04 +0100)
Fixes #793

app/assets/javascripts/index.js

index c066f8961f3fd2bc6388a0a2829949c68dd28e62..a259954f21eda7bee4fb972eb2f9797a5a8f2c12 100644 (file)
@@ -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("/");
     }
   });