summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/user_item.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-24 11:05:13 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-24 11:05:13 -0400
commitb62e29ba9cd6183551266da05b9b602a4415d738 (patch)
treeea759d6d46cc49386bcd66a8b9b8542f75b1c77e /webapp/components/admin_console/user_item.jsx
parent68dad8c7345b12c7d0b10709ddc1873d4b40163e (diff)
downloadchat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.gz
chat-b62e29ba9cd6183551266da05b9b602a4415d738.tar.bz2
chat-b62e29ba9cd6183551266da05b9b602a4415d738.zip
Moving all links and redirects to react-router
Diffstat (limited to 'webapp/components/admin_console/user_item.jsx')
-rw-r--r--webapp/components/admin_console/user_item.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/admin_console/user_item.jsx b/webapp/components/admin_console/user_item.jsx
index c6498eafc..91f567d4d 100644
--- a/webapp/components/admin_console/user_item.jsx
+++ b/webapp/components/admin_console/user_item.jsx
@@ -10,6 +10,7 @@ import TeamStore from 'stores/team_store.jsx';
import {FormattedMessage} from 'react-intl';
import React from 'react';
+import {browserHistory} from 'react-router';
export default class UserItem extends React.Component {
constructor(props) {
@@ -158,9 +159,9 @@ export default class UserItem extends React.Component {
const teamUrl = TeamStore.getCurrentTeamUrl();
if (teamUrl) {
- window.location.href = teamUrl;
+ browserHistory.push(teamUrl);
} else {
- window.location.href = '/';
+ browserHistory.push('/');
}
},
(err) => {