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/components/root.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/components/root.jsx')

diff --git a/webapp/components/root.jsx b/webapp/components/root.jsx
index 0332a8e0a..9e9ed1111 100644
--- a/webapp/components/root.jsx
+++ b/webapp/components/root.jsx
@@ -96,7 +96,7 @@ export default class Root extends React.Component {
             } else if (UserStore.getCurrentUser()) {
                 GlobalActions.redirectUserToDefaultTeam();
             } else {
-                browserHistory.push('/login');
+                browserHistory.push('/login' + window.location.search);
             }
         }
     }
-- 
cgit v1.2.3-1-g7c22

