If the home page is somehow accessed, goto directory

For example, if someone ends up on /home somehow, just redirect to the directory instead of displaying a very awkward "File not found" plain text in the home page iFrame.
pull/21833/head
Luke Barnard 2017-02-16 17:03:22 +00:00
parent 6945e7c154
commit 9d2bb70823
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,10 @@ module.exports = React.createClass({
this.notifyNewScreen('directory');
break;
case 'view_home_page':
if (!this._teamToken) {
dis.dispatch({action: 'view_room_directory'});
return;
}
this._setPage(PageTypes.HomePage);
this.notifyNewScreen('home');
break;