Skip to content
Snippets Groups Projects
Commit 9fd50d807896 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[views] use q=term by default instead of search (closes #17049619)

parent cf0931e576e2
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment