From 97deda72f0bf1d57420996bf24235085abae7839 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 29 Mar 2016 16:51:27 -0400 Subject: Fixing Link warning --- webapp/components/sidebar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/components') 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 ( -- cgit v1.2.3-1-g7c22