Commit 7149a1aa authored by Nicolas Gelot's avatar Nicolas Gelot

Fix redirect to home page if query is empty

parent 79ddbbf3
......@@ -485,7 +485,7 @@ def index():
output = request.form.get("output", "html")
# check if there is query
if request.form.get('q') is None:
if not request.form.get('q'):
if output == 'json':
return jsonify({}), 204
return render('index.html')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment