From 86d77dc5a65ff6679b724f223408d440d51d8691 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 19 Sep 2024 21:01:38 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20saisie=20assiduit=C3=A9:=20redirect?= =?UTF-8?q?=20(chrome)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/assiduites.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/assiduites.py b/app/views/assiduites.py index 46c47663e..646ca73c2 100644 --- a/app/views/assiduites.py +++ b/app/views/assiduites.py @@ -257,7 +257,7 @@ def ajout_assiduite_etud() -> str | Response: moduleimpl_id: int | None = request.args.get("moduleimpl_id", "") redirect_url: str = ( - "#" + request.url if not saisie_eval else url_for( "notes.evaluation_check_absences_html", @@ -292,6 +292,7 @@ def ajout_assiduite_etud() -> str | Response: ok = _record_assiduite_etud(etud, form, formsemestre=formsemestre) if ok: flash("enregistré") + log(f"redirect_url={redirect_url}") return redirect(redirect_url) force_options = {"show_pres": True, "show_reta": True}