Explorar o código

fix city search for special cars

Olivier Massot %!s(int64=4) %!d(string=hai) anos
pai
achega
026a7cd9d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/Ui/Search/Address.vue

+ 1 - 1
components/Ui/Search/Address.vue

@@ -121,7 +121,7 @@ export default Vue.extend({
       let apiUrl = 'https://api-adresse.data.gouv.fr/search/' +
                      `?type=${this.type}` +
                      `&autocomplete=${this.autocomplete ? 1 : 0}` +
-                     `&q=${encodeURI(val.replace(/\s+/gi, '+'))}`
+                     `&q=${val.replace(/[\s&?]/gi, '+')}`
 
       if (this.limit > 0) {
         apiUrl += `&limit=${this.limit}`