summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-30 09:34:35 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-30 09:34:35 -0400
commit52cef6bc41d39a1eef1cc9f26ef46262c31cd66a (patch)
treec0573413a8733ebf6b1f69160695074af5ef038e /webapp/components
parent22b24798afbb34847ab4217c2967d02e1b39608b (diff)
parent51ebd65aec3c2cf85009b7c75d4e4cd53af37462 (diff)
downloadchat-52cef6bc41d39a1eef1cc9f26ef46262c31cd66a.tar.gz
chat-52cef6bc41d39a1eef1cc9f26ef46262c31cd66a.tar.bz2
chat-52cef6bc41d39a1eef1cc9f26ef46262c31cd66a.zip
Merge pull request #2568 from mattermost/fix-sidebar-link
Fixing some warnings.
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/sidebar.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index bf51fa102..45bca7212 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -440,9 +440,9 @@ export default class Sidebar extends React.Component {
let link = '';
if (channel.fake) {
- link = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name + '?fakechannel=' + encodeURIComponent(JSON.stringify(channel));
+ link = '/' + this.state.currentTeam.name + '/channels/' + channel.name + '?fakechannel=' + encodeURIComponent(JSON.stringify(channel));
} else {
- link = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name;
+ link = '/' + this.state.currentTeam.name + '/channels/' + channel.name;
}
return (