mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-10 14:46:25 +02:00
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
@ -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…
x
Reference in New Issue
Block a user