summaryrefslogtreecommitdiffstats
path: root/webapp/root.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-05-02 08:08:11 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-02 08:08:11 -0400
commit553e2320ec14eb8a1b11958a1eb7a6b39edaf29f (patch)
treeb2d7157ab866e9ac0497dedb2a08dd768e8b4533 /webapp/root.jsx
parent29b91301a65e2825afc415a60e1eab73d0de6d86 (diff)
downloadchat-553e2320ec14eb8a1b11958a1eb7a6b39edaf29f.tar.gz
chat-553e2320ec14eb8a1b11958a1eb7a6b39edaf29f.tar.bz2
chat-553e2320ec14eb8a1b11958a1eb7a6b39edaf29f.zip
Redirect to town square rather than team select on bad channel (#2826)
Diffstat (limited to 'webapp/root.jsx')
-rw-r--r--webapp/root.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/root.jsx b/webapp/root.jsx
index e90d3fdc5..3f1edda38 100644
--- a/webapp/root.jsx
+++ b/webapp/root.jsx
@@ -208,7 +208,11 @@ function doChannelChange(state, replace, callback) {
callback();
},
() => {
- replace('/');
+ if (state.params.team) {
+ replace('/' + state.params.team + '/channels/town-square');
+ } else {
+ replace('/');
+ }
callback();
}
);