]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/components/UrlSubmitForm.svelte
On /details page the map-position box was misaligned
[nominatim-ui.git] / src / components / UrlSubmitForm.svelte
index a3dfaa07d5bb4f8f82b27d36ccf5bad2cd7d1e5c..01feea1e020935af537f0475b7df2bf2e46927a0 100644 (file)
@@ -12,6 +12,9 @@
       if (['checkbox', 'radio'].indexOf(field.type) > -1 && !field.checked) return;
       if (typeof field.value === 'undefined' || field.value === '') return;
 
+      // Default value for /search endpoint
+      if (field.name === 'dedupe' && (field.value === 1 || field.value === '1')) return;
+
       params.set(field.name, field.value);
     });