From 64e424857b581a575790e82de7aa3079597dd492 Mon Sep 17 00:00:00 2001 From: Luis Alvergue Date: Thu, 20 Jun 2024 16:50:14 +0000 Subject: [PATCH] fix(enrollment): fix changing languages on enrollment success --- benefits/core/templates/core/includes/lang-selector.html | 1 + benefits/enrollment/views.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/benefits/core/templates/core/includes/lang-selector.html b/benefits/core/templates/core/includes/lang-selector.html index b652d2e39..82fc08b07 100644 --- a/benefits/core/templates/core/includes/lang-selector.html +++ b/benefits/core/templates/core/includes/lang-selector.html @@ -14,6 +14,7 @@
{% csrf_token %} {% get_language_info for code as langinfo %} +
diff --git a/benefits/enrollment/views.py b/benefits/enrollment/views.py index f95308646..77a0a7a71 100644 --- a/benefits/enrollment/views.py +++ b/benefits/enrollment/views.py @@ -289,4 +289,5 @@ def success(request): session.update(request, origin=reverse(ROUTE_LOGGED_OUT)) analytics.returned_success(request, eligibility.group_id) - return TemplateResponse(request, eligibility.enrollment_success_template) + context = {"redirect_to": request.path} + return TemplateResponse(request, eligibility.enrollment_success_template, context)