From 2867e2f5b1a39fe1cf6da19ddd5a4f1d3a8e38f9 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Oct 04 2018 03:31:04 +0000 Subject: Redirect back to branch list when deleting a branch Changes the pagure worker task so we re-direct back to the branches page when deleting a branch, rather than to the overview page. Fixes: #3781 --- diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index b8214de..d47f01e 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -455,7 +455,7 @@ def delete_branch(self, session, name, namespace, user, branchname): _log.exception(err) return ret( - "ui_ns.view_repo", repo=name, namespace=namespace, username=user + "ui_ns.view_branches", repo=name, namespace=namespace, username=user )