summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-25 09:54:25 -0700
committerCorey Hulen <corey@hulen.com>2015-09-25 09:54:25 -0700
commit30bc17a7400ee964b8d7648ad3c782abdae72cc6 (patch)
tree967b68f2106cbccfda9be6615beea7d20c3380b2 /web/react/utils
parentf75475d3d053b6f9c4f28de2823302f439f3aec3 (diff)
parentad346f8734f5419067c4988f118281955516a356 (diff)
downloadchat-30bc17a7400ee964b8d7648ad3c782abdae72cc6.tar.gz
chat-30bc17a7400ee964b8d7648ad3c782abdae72cc6.tar.bz2
chat-30bc17a7400ee964b8d7648ad3c782abdae72cc6.zip
Merge pull request #808 from mattermost/fixing-redirect2
fixing more redirect places
Diffstat (limited to 'web/react/utils')
-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 d45240f9a..c330296b2 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() {