From 554938a8403a00dda36c77b288dafe374dd2430e Mon Sep 17 00:00:00 2001
From: David Meza <dmeza@users.noreply.github.com>
Date: Thu, 25 May 2017 09:49:46 -0500
Subject: Add RedirectTo after login for Universal linking or deep linking to
 work (#6304)

---
 webapp/routes/route_team.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/routes/route_team.jsx')

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;
     }
 
-- 
cgit v1.2.3-1-g7c22

