diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-02 08:08:11 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-02 08:08:11 -0400 |
commit | 553e2320ec14eb8a1b11958a1eb7a6b39edaf29f (patch) | |
tree | b2d7157ab866e9ac0497dedb2a08dd768e8b4533 /webapp | |
parent | 29b91301a65e2825afc415a60e1eab73d0de6d86 (diff) | |
download | chat-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')
-rw-r--r-- | webapp/root.jsx | 6 |
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(); } ); |