Fix redirect on single-click actions when hosting at subdomain

`path_info` (pre-commit siutation) is precisely w/o script_name, but you
want to just redirect to where you are, which is `path`.

Fix #250, See #93
See:

https://docs.djangoproject.com/en/5.2/ref/request-response/#django.http.HttpRequest.path_info
https://docs.djangoproject.com/en/5.2/ref/request-response/#django.http.HttpRequest.path
This commit is contained in:
Klaas van Schelven
2025-10-22 09:52:16 +02:00
parent d8fef759ca
commit dcaa1d5e72
2 changed files with 2 additions and 2 deletions

View File

@@ -363,7 +363,7 @@ def _handle_post(request, issue):
# resolve an issue for a specific release, and while you where thinking about that, it occurred for that
# release. In that case it will probably stand out that your buttons don't become greyed out, and that the
# dropdown no longer functions. already-true-vbc-unmute may be another exception to this rule.
return HttpResponseRedirect(request.path_info)
return HttpResponseRedirect(request.path)
def _get_event(qs, issue, event_pk, digest_order, nav, bounds):

File diff suppressed because one or more lines are too long