summaryrefslogtreecommitdiffstats
path: root/webapp/routes
diff options
context:
space:
mode:
authorDavid Meza <dmeza@users.noreply.github.com>2017-05-25 09:49:46 -0500
committerChristopher Speller <crspeller@gmail.com>2017-05-25 10:49:46 -0400
commit554938a8403a00dda36c77b288dafe374dd2430e (patch)
tree912f12ede7b7ec81397acba299aa5cf8e05d27e0 /webapp/routes
parentb28227ff6b63ee564a91e06f1bac445d333d87d6 (diff)
downloadchat-554938a8403a00dda36c77b288dafe374dd2430e.tar.gz
chat-554938a8403a00dda36c77b288dafe374dd2430e.tar.bz2
chat-554938a8403a00dda36c77b288dafe374dd2430e.zip
Add RedirectTo after login for Universal linking or deep linking to work (#6304)
Diffstat (limited to 'webapp/routes')
-rw-r--r--webapp/routes/route_team.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/routes/route_team.jsx b/webapp/routes/route_team.jsx
index 45494dca5..fe2b0050c 100644
--- a/webapp/routes/route_team.jsx
+++ b/webapp/routes/route_team.jsx
@@ -94,7 +94,7 @@ function preNeedsTeam(nextState, replace, callback) {
const team = TeamStore.getByName(teamName);
if (!team) {
- browserHistory.push('/');
+ browserHistory.push('/?redirect_to=' + encodeURIComponent(nextState.location.pathname));
return;
}