Skip to content

Commit

Permalink
nsqadmin: /empty_channel should redirect back to channel
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Feb 5, 2013
1 parent b120c77 commit 4f1e516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsqadmin/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4f1e516

Please sign in to comment.