]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/searchpage.js
remove empty URL parameter when generating target_url
[nominatim-ui.git] / src / assets / js / searchpage.js
index be9c20a3e48d30f7dfa60ba57dda72eacf155091..f53dfd4c13d9325a3f1bc907493568d903ec1098 100755 (executable)
@@ -411,7 +411,7 @@ function search_page_load() {
         if (aResults.length >= 10) {
           var aExcludePlaceIds = [];
           if (search_params.has('exclude_place_ids')) {
-            aExcludePlaceIds.search_params.get('exclude_place_ids').split(',');
+            aExcludePlaceIds = search_params.get('exclude_place_ids').split(',');
           }
           for (var i = 0; i < aResults.length; i += 1) {
             aExcludePlaceIds.push(aResults[i].place_id);