From 9f169743253a13b92ea75f01ab16b646a92eee04 Mon Sep 17 00:00:00 2001 From: Josh Feather <142008135+josh-feather@users.noreply.github.com> Date: Wed, 18 Feb 2026 14:29:00 +0000 Subject: [PATCH] Make the reprocess button redirect to the task status page (#2921) * Make the reprocess button redirect to the task status page Clicking the reprocess button now takes you to the task status page, where users can wait for processing to finish, improving the user experience. Previously users were redirected to the analysis page. * Use redirect instead of HttpResponseRedirect on reprocess view --- web/analysis/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/analysis/views.py b/web/analysis/views.py index 65494c02332..8500e42646b 100644 --- a/web/analysis/views.py +++ b/web/analysis/views.py @@ -24,7 +24,6 @@ from django.shortcuts import redirect, render from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST, require_safe -from django.urls import reverse from rest_framework.decorators import api_view sys.path.append(settings.CUCKOO_PATH) @@ -2652,7 +2651,7 @@ def reprocess_tasks(request, task_id: int): if error: return render(request, "error.html", {"error": msg}) else: - return HttpResponseRedirect(reverse("analysis")) + return redirect("submission_status", task_id=task_id) @require_safe