summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/admin_sidebar.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-10-19 10:10:09 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2015-10-19 10:10:09 -0400
commit2d0b9529417ef2cf4d2d9cccbd88b065b0db77db (patch)
tree833171c6febaa732156a35c00d553ed074af5618 /web/react/components/admin_console/admin_sidebar.jsx
parent814aa57fc1cebd1e430e36102d8b3c3830351cb8 (diff)
parent9fa3c996d522589139f56964087022bd0942e5e4 (diff)
downloadchat-2d0b9529417ef2cf4d2d9cccbd88b065b0db77db.tar.gz
chat-2d0b9529417ef2cf4d2d9cccbd88b065b0db77db.tar.bz2
chat-2d0b9529417ef2cf4d2d9cccbd88b065b0db77db.zip
Merge pull request #1101 from stasvovk/admin_console_urls
#962: change url when a user navigates between tabs in admin console
Diffstat (limited to 'web/react/components/admin_console/admin_sidebar.jsx')
-rw-r--r--web/react/components/admin_console/admin_sidebar.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/admin_console/admin_sidebar.jsx b/web/react/components/admin_console/admin_sidebar.jsx
index 4c2a473b6..c7faa83fe 100644
--- a/web/react/components/admin_console/admin_sidebar.jsx
+++ b/web/react/components/admin_console/admin_sidebar.jsx
@@ -24,6 +24,7 @@ export default class AdminSidebar extends React.Component {
handleClick(name, teamId, e) {
e.preventDefault();
this.props.selectTab(name, teamId);
+ history.pushState({name: name, teamId: teamId}, null, `/admin_console/${name}/${teamId || ''}`);
}
isSelected(name, teamId) {