diff options
author | Corey Hulen <corey@hulen.com> | 2015-07-07 23:11:46 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-07-07 23:11:46 -0800 |
commit | 817d9110b39c0b39e798f8efa83c47a22eaac0c3 (patch) | |
tree | 3a995cc867146474abdf8017f95febfc9eb66f4d | |
parent | 66e97a56b0814b7c2378e9c7b4603d1c6408d330 (diff) | |
parent | 1f0b4a39b09b72c635d0f2e900cd0d90b3ff3de6 (diff) | |
download | chat-817d9110b39c0b39e798f8efa83c47a22eaac0c3.tar.gz chat-817d9110b39c0b39e798f8efa83c47a22eaac0c3.tar.bz2 chat-817d9110b39c0b39e798f8efa83c47a22eaac0c3.zip |
Merge pull request #137 from nickago/MM-1417
MM-1417 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 } } |