# HG changeset patch # User Arthur Lutz <arthur.lutz@logilab.fr> # Date 1485337088 -3600 # Wed Jan 25 10:38:08 2017 +0100 # Node ID 9fd50d80789695f743c46040c37db8f247dd75a1 # Parent cf0931e576e2d4868efb1e72294b683d06bb4718 [views] use q=term by default instead of search (closes #17049619) diff --git a/views.py b/views.py --- a/views.py +++ b/views.py @@ -135,7 +135,7 @@ def call(self, **kwargs): # TODO if no ES configuration, redirect or display warning self.render_search_comp() - query_string = self._cw.form.get('search', '') + query_string = self._cw.form.get('q', self._cw.form.get('search', '')) self.w(u'<h1>%s</h1>' % self._cw._('Recherche')) response = self.do_search(query_string) if response.hits.total: