From eceb56dd58fe5ba95c98f10ba9c49a7df8c16c66 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Mon, 2 Nov 2015 12:50:15 -0800
Subject: PLT-885 allow single select of stats page

---
 web/react/components/admin_console/admin_controller.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'web/react/components/admin_console/admin_controller.jsx')

diff --git a/web/react/components/admin_console/admin_controller.jsx b/web/react/components/admin_console/admin_controller.jsx
index d309ced2e..8e0ab0555 100644
--- a/web/react/components/admin_console/admin_controller.jsx
+++ b/web/react/components/admin_console/admin_controller.jsx
@@ -6,6 +6,7 @@ var AdminStore = require('../../stores/admin_store.jsx');
 var TeamStore = require('../../stores/team_store.jsx');
 var AsyncClient = require('../../utils/async_client.jsx');
 var LoadingScreen = require('../loading_screen.jsx');
+var Utils = require('../../utils/utils.jsx');
 
 var EmailSettingsTab = require('./email_settings.jsx');
 var LogSettingsTab = require('./log_settings.jsx');
@@ -46,7 +47,8 @@ export default class AdminController extends React.Component {
         };
 
         if (!props.tab) {
-            history.replaceState(null, null, `/admin_console/${this.state.selected}`);
+            var tokenIndex = Utils.getUrlParameter('session_token_index');
+            history.replaceState(null, null, `/admin_console/${this.state.selected}?session_token_index=${tokenIndex}`);
         }
     }
 
-- 
cgit v1.2.3-1-g7c22

