From 4dd1d35cece46d146aa3a2a4be683693e53944f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 5 Aug 2020 10:26:39 +0800 Subject: [PATCH] Removed the status ID when constructing the return url in the Mia core application. --- mia_core/templatetags/mia_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mia_core/templatetags/mia_core.py b/mia_core/templatetags/mia_core.py index a0622c6..13f3fc7 100644 --- a/mia_core/templatetags/mia_core.py +++ b/mia_core/templatetags/mia_core.py @@ -95,7 +95,8 @@ def url_with_return(context, view_name, *args): str: The URL. """ url = reverse(view_name, args=args) - return str(UrlBuilder(url).query(r=context.request.get_full_path())) + return str(UrlBuilder(url).query( + r=str(UrlBuilder(context.request.get_full_path()).remove("s")))) @register.simple_tag(takes_context=True)