explicitly nav to /home #homehack

This commit is contained in:
robcolbert
2019-07-03 19:29:54 -04:00
parent 54fe77650d
commit fb49559d05
5 changed files with 6 additions and 7 deletions

View File

@@ -182,7 +182,7 @@ class SwitchingColumnsArea extends React.PureComponent {
return (
<Switch>
{/* <Redirect from='/' to='/home' exact /> */}
<Redirect from='/' to='/home' exact />
<WrappedRoute path='/home' exact layout={LAYOUT.HOME} component={HomeTimeline} content={children} />
<WrappedRoute path='/groups' component={Groups} content={children} />
@@ -444,7 +444,7 @@ class UI extends React.PureComponent {
handleHotkeyBack = () => {
if (window.history && window.history.length === 1) {
this.context.router.history.push('/');
this.context.router.history.push('/home'); // homehack
} else {
this.context.router.history.goBack();
}