Removed the status ID when constructing the return url in the Mia core application.

This commit is contained in:
依瑪貓 2020-08-05 10:26:39 +08:00
parent 474c74ebb0
commit 4dd1d35cec

View File

@ -95,7 +95,8 @@ def url_with_return(context, view_name, *args):
str: The URL. str: The URL.
""" """
url = reverse(view_name, args=args) 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) @register.simple_tag(takes_context=True)