From 775d84f3f66609860e2269ef1ba2e9482c233874 Mon Sep 17 00:00:00 2001 From: Jhonatan Lopes Date: Thu, 22 Feb 2024 10:09:15 -0300 Subject: [PATCH] Remove LANGUAGE_SESSION_KEY from localized_redirect --- network-api/networkapi/wagtailpages/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/network-api/networkapi/wagtailpages/views.py b/network-api/networkapi/wagtailpages/views.py index ed4c26c28cf..08b9b9c79d3 100644 --- a/network-api/networkapi/wagtailpages/views.py +++ b/network-api/networkapi/wagtailpages/views.py @@ -29,7 +29,6 @@ def custom404_view(request, exception): def localized_redirect(request, subpath, destination_path): lang = request.LANGUAGE_CODE translation.activate(lang) - request.session[translation.LANGUAGE_SESSION_KEY] = lang query_string = "" if request.META["QUERY_STRING"]: