From 4f1e5169bf1ea385c9aa831b670418a9200048eb Mon Sep 17 00:00:00 2001 From: Matt Reiferson Date: Mon, 4 Feb 2013 21:34:59 -0500 Subject: [PATCH] nsqadmin: /empty_channel should redirect back to channel --- nsqadmin/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsqadmin/http.go b/nsqadmin/http.go index 63ccc92a0..db7d8193c 100644 --- a/nsqadmin/http.go +++ b/nsqadmin/http.go @@ -530,7 +530,7 @@ func emptyChannelHandler(w http.ResponseWriter, req *http.Request) { NotifyAdminAction("empty_channel", topicName, channelName, req) - http.Redirect(w, req, fmt.Sprintf("/topic/%s", url.QueryEscape(topicName)), 302) + http.Redirect(w, req, fmt.Sprintf("/topic/%s/%s", url.QueryEscape(topicName), url.QueryEscape(channelName)), 302) } func pauseChannelHandler(w http.ResponseWriter, req *http.Request) {