summaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-06 13:14:51 -0700
committernickago <ngonella@calpoly.edu>2015-07-06 13:15:09 -0700
commit1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6 (patch)
tree1b0b6092846b012eb996f72714fa25714609d86a /web/web.go
parent5e204030ffe91aaab090a26547185017edf1d2e1 (diff)
downloadchat-1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6.tar.gz
chat-1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6.tar.bz2
chat-1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6.zip
redirected channel name 404's to town square
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go
index 443a75916..e771157d8 100644
--- a/web/web.go
+++ b/web/web.go
@@ -301,7 +301,10 @@ func getChannel(c *api.Context, w http.ResponseWriter, r *http.Request) {
return
}
- api.Handle404(w, r)
+ //api.Handle404(w, r)
+ //Bad channel urls just redirect to the town-square for now
+
+ http.Redirect(w,r,"/channels/town-square", http.StatusFound)
return
}
}