explicitly nav to /home #homehack
This commit is contained in:
@@ -11,7 +11,7 @@ export default class ColumnBackButton extends React.PureComponent {
|
||||
|
||||
handleClick = () => {
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ class ColumnHeader extends React.PureComponent {
|
||||
|
||||
historyBack = () => {
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export default class ErrorBoundary extends React.PureComponent {
|
||||
<div className='error-boundary'>
|
||||
<div>
|
||||
<FormattedMessage id='alert.unexpected.message' defaultMessage='Error' />
|
||||
<a href='/'>Return Home</a>
|
||||
<a href='/home'>Return Home</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user