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.
This commit is contained in:
parent
6945e7c154
commit
9d2bb70823
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue