From b972d2adba49996b13d4e0bb75b5b3f28e039466 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 15 Aug 2016 08:20:38 -0500 Subject: PLT-3844 Fix Not redirected out of system console after demoting self from System Admin (#3797) --- webapp/components/admin_console/user_item.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webapp') diff --git a/webapp/components/admin_console/user_item.jsx b/webapp/components/admin_console/user_item.jsx index b4e74057f..974ef8bc9 100644 --- a/webapp/components/admin_console/user_item.jsx +++ b/webapp/components/admin_console/user_item.jsx @@ -11,7 +11,6 @@ import TeamStore from 'stores/team_store.jsx'; import {FormattedMessage, FormattedHTMLMessage} from 'react-intl'; import React from 'react'; -import {browserHistory} from 'react-router/es6'; export default class UserItem extends React.Component { constructor(props) { @@ -183,9 +182,10 @@ export default class UserItem extends React.Component { const teamUrl = TeamStore.getCurrentTeamUrl(); if (teamUrl) { - browserHistory.push(teamUrl); + // the channel is added to the URL cause endless loading not being fully fixed + window.location.href = teamUrl + '/channels/town-square'; } else { - browserHistory.push('/'); + window.location.href = '/'; } }, (err) => { -- cgit v1.2.3-1-g7c22