Skip to content

Commit

Permalink
Merge pull request #145 from mreiferson/empty_redirect_145
Browse files Browse the repository at this point in the history
nsqadmin: empty channel should redirect back to channel
  • Loading branch information
jehiah committed Feb 5, 2013
2 parents b120c77 + 4f1e516 commit 504f1d3
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 504f1d3

Please sign in to comment.