1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-22 02:57:39 +00:00

Search query is now also a post request (possible fix for Forward Auth Search Redirect Issue #2681)

This commit is contained in:
Ozzie Isaacs
2023-02-05 09:27:56 +01:00
parent 907606295d
commit 275675b48a
3 changed files with 7 additions and 5 deletions

View File

@@ -392,7 +392,7 @@ def render_books_list(data, sort_param, book_id, page):
elif data == "archived":
return render_archived_books(page, order)
elif data == "search":
term = (request.args.get('query') or '')
term = json.loads(flask_session.get('query', ''))
offset = int(int(config.config_books_per_page) * (page - 1))
return render_search_results(term, offset, order, config.config_books_per_page)
elif data == "advsearch":