summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <Unknowngi@live.com>2015-09-25 22:44:55 +0500
committerAsaad Mahmood <Unknowngi@live.com>2015-09-25 22:44:55 +0500
commit4667d8c61e458f9f24690fd766e7beb8887c84ce (patch)
treef9a125f7c9fd29027064299b9ea5c90aed1ee5af /web/react/utils/utils.jsx
parent9d1dddb7f4cd6ee9682bb48d88f5f0271a72dcba (diff)
parent73cdee70d7bcba367ff006ce1ce6a6d50ccbf3e7 (diff)
downloadchat-4667d8c61e458f9f24690fd766e7beb8887c84ce.tar.gz
chat-4667d8c61e458f9f24690fd766e7beb8887c84ce.tar.bz2
chat-4667d8c61e458f9f24690fd766e7beb8887c84ce.zip
Merge branch 'master' of https://github.com/mattermost/platform into plt-366
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r--web/react/utils/utils.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 280370c33..61dcae6d8 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -4,6 +4,7 @@
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
var ChannelStore = require('../stores/channel_store.jsx');
var UserStore = require('../stores/user_store.jsx');
+var TeamStore = require('../stores/team_store.jsx');
var Constants = require('../utils/constants.jsx');
var ActionTypes = Constants.ActionTypes;
var AsyncClient = require('./async_client.jsx');
@@ -113,7 +114,7 @@ export function notifyMe(title, body, channel) {
if (channel) {
switchChannel(channel);
} else {
- window.location.href = '/';
+ window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/town-square';
}
};
setTimeout(function closeNotificationOnTimeout() {