From b62e29ba9cd6183551266da05b9b602a4415d738 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 24 Mar 2016 11:05:13 -0400
Subject: Moving all links and redirects to react-router

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

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

diff --git a/webapp/components/login_email.jsx b/webapp/components/login_email.jsx
index e30b66fa3..d54c32ff9 100644
--- a/webapp/components/login_email.jsx
+++ b/webapp/components/login_email.jsx
@@ -79,7 +79,7 @@ class LoginEmail extends React.Component {
             },
             (err) => {
                 if (err.id === 'api.user.login.not_verified.app_error') {
-                    window.location.href = '/verify_email?teamname=' + encodeURIComponent(name) + '&email=' + encodeURIComponent(email);
+                    browserHistory.push('/verify_email?teamname=' + encodeURIComponent(name) + '&email=' + encodeURIComponent(email));
                     return;
                 }
                 state.serverError = err.message;
-- 
cgit v1.2.3-1-g7c22

