From 553e2320ec14eb8a1b11958a1eb7a6b39edaf29f Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 2 May 2016 08:08:11 -0400 Subject: [PATCH] Redirect to town square rather than team select on bad channel (#2826) --- webapp/root.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/root.jsx b/webapp/root.jsx index e90d3fdc5f..3f1edda38b 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(); } );