summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/admin_sidebar.jsx
diff options
context:
space:
mode:
authorStas Vovk <stas@vovk.me>2015-10-18 18:55:04 +0300
committerStas Vovk <stas@vovk.me>2015-10-18 18:55:04 +0300
commit9fa3c996d522589139f56964087022bd0942e5e4 (patch)
tree957d5a6af83b9f28b64201dcb633074439010b82 /web/react/components/admin_console/admin_sidebar.jsx
parent7e457dd8d9ad0e22be7dd7753bb37a611303c808 (diff)
downloadchat-9fa3c996d522589139f56964087022bd0942e5e4.tar.gz
chat-9fa3c996d522589139f56964087022bd0942e5e4.tar.bz2
chat-9fa3c996d522589139f56964087022bd0942e5e4.zip
change url when a user navigates between tabs [#962]
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) {