Commit 5ed8fa56 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch 'preserve-preferences-cookies' into 'master'

Preserve the user URL preferences for subsequent requests

See merge request e/cloud/my-spot!86
parents dcc2674b 2c88e845
......@@ -739,7 +739,7 @@ def search():
},
result_container.corrections))
#
return render(
rendered_page = render(
'results.html',
results=results,
q=request.form['q'],
......@@ -762,6 +762,10 @@ def search():
favicons=global_favicons[themes_folder_name.index(get_current_theme_folder_name())],
timeout_limit=request.form.get('timeout_limit', None)
)
resp = make_response(rendered_page)
if request.form.get('preferences'):
request.preferences.save(resp)
return resp
def __get_translated_errors(unresponsive_engines):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment