Fixing redirect issue

This commit is contained in:
=Corey Hulen
2015-10-02 10:29:56 -07:00
parent 4452bb7988
commit 3b34e73132

View File

@@ -341,7 +341,7 @@ func getChannel(c *api.Context, w http.ResponseWriter, r *http.Request) {
if team.Name != teamName {
l4g.Error("It appears you are logged into " + team.Name + ", but are trying to access " + teamName)
http.Redirect(w, r, c.GetTeamURL()+"/channels/town-square", http.StatusFound)
http.Redirect(w, r, c.GetSiteURL()+"/"+team.Name+"/channels/town-square", http.StatusFound)
return
}