From cad1e2ab4d1c4df466576e2e3923511203da9865 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Thu, 28 Oct 2021 21:06:52 -0600 Subject: [PATCH] Include translation mapping in nojs windows The translation map was missing for links opened via the nojs feature, causing a server error. Fixes #507 --- app/routes.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 406207c..bc8ee44 100644 --- a/app/routes.py +++ b/app/routes.py @@ -385,7 +385,13 @@ def window(): for script in results('script'): script.decompose() - return render_template('display.html', response=results) + return render_template( + 'display.html', + response=results, + translation=app.config['TRANSLATIONS'][ + g.user_config.get_localization_lang() + ] + ) def run_app() -> None: