diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-06 13:14:51 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-06 13:15:09 -0700 |
commit | 1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6 (patch) | |
tree | 1b0b6092846b012eb996f72714fa25714609d86a | |
parent | 5e204030ffe91aaab090a26547185017edf1d2e1 (diff) | |
download | chat-1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6.tar.gz chat-1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6.tar.bz2 chat-1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6.zip |
redirected channel name 404's to town square
-rw-r--r-- | web/web.go | 5 |
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 } } |