diff options
author | Stas Vovk <stas@vovk.me> | 2015-10-18 18:55:04 +0300 |
---|---|---|
committer | Stas Vovk <stas@vovk.me> | 2015-10-18 18:55:04 +0300 |
commit | 9fa3c996d522589139f56964087022bd0942e5e4 (patch) | |
tree | 957d5a6af83b9f28b64201dcb633074439010b82 /web/react/components/admin_console/admin_sidebar.jsx | |
parent | 7e457dd8d9ad0e22be7dd7753bb37a611303c808 (diff) | |
download | chat-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.jsx | 1 |
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) { |