summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-31 11:19:38 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-31 11:28:28 -0400
commitb382844b7982c701fe90d431a6f38502df75b843 (patch)
tree27431982c5c4435d7af6cad390ec91acaed40273 /webapp
parent5feda3559106e9d1f156fe25761c1a8c7c21db26 (diff)
downloadchat-b382844b7982c701fe90d431a6f38502df75b843.tar.gz
chat-b382844b7982c701fe90d431a6f38502df75b843.tar.bz2
chat-b382844b7982c701fe90d431a6f38502df75b843.zip
Fixing sidebar jump warning
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/search_results_item.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index 219aa7093..75cbcb2a0 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -5,7 +5,6 @@ import UserStore from 'stores/user_store.jsx';
import UserProfile from './user_profile.jsx';
import * as GlobalActions from 'action_creators/global_actions.jsx';
import * as TextFormatting from 'utils/text_formatting.jsx';
-import * as Utils from 'utils/utils.jsx';
import Constants from 'utils/constants.jsx';
@@ -88,7 +87,7 @@ export default class SearchResultsItem extends React.Component {
</li>
<li>
<Link
- to={Utils.getTeamURLFromAddressBar() + '/pl/' + this.props.post.id}
+ to={'/' + window.location.pathname.split('/')[1] + '/pl/' + this.props.post.id}
className='search-item__jump'
>
<FormattedMessage