'/home' -> '/'

This commit is contained in:
Alex Gleason 2020-04-10 20:10:39 -05:00
parent 9769e0fb77
commit 33cbbaf953
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
7 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@ export default class ColumnBackButton extends React.PureComponent {
handleClick = () => {
if (window.history && window.history.length === 1) {
this.context.router.history.push('/home'); // homehack
this.context.router.history.push('/');
} else {
this.context.router.history.goBack();
}

View file

@ -34,7 +34,7 @@ class ColumnHeader extends React.PureComponent {
historyBack = () => {
if (window.history && window.history.length === 1) {
this.context.router.history.push('/home'); // homehack
this.context.router.history.push('/');
} else {
this.context.router.history.goBack();
}

View file

@ -33,7 +33,7 @@ export default class ErrorBoundary extends React.PureComponent {
<div className='error-boundary'>
<div>
<FormattedMessage id='alert.unexpected.message' defaultMessage='An unexpected error occurred.' />
<a href='/home'>Return Home</a>
<a href='/'>Return Home</a>
</div>
</div>
);

View file

@ -136,7 +136,7 @@ class ColumnHeader extends React.PureComponent {
return (
<div className={wrapperClassName}>
<h1 className={buttonClassName}>
<Link to='/home' className={classNames('btn grouped', {'active': 'home' === activeItem})}>
<Link to='/' className={classNames('btn grouped', {'active': 'home' === activeItem})}>
<Icon id='home' fixedWidth className='column-header__icon' />
{formatMessage(messages.homeTitle)}
</Link>

View file

@ -78,7 +78,7 @@ class Compose extends React.PureComponent {
<nav className='drawer__header'>
<Link to='/getting-started' className='drawer__tab' title={intl.formatMessage(messages.start)} aria-label={intl.formatMessage(messages.start)}><Icon id='bars' fixedWidth /></Link>
{!columns.some(column => column.get('id') === 'HOME') && (
<Link to='/home' className='drawer__tab' title={intl.formatMessage(messages.home_timeline)} aria-label={intl.formatMessage(messages.home_timeline)}><Icon id='home' fixedWidth /></Link>
<Link to='/' className='drawer__tab' title={intl.formatMessage(messages.home_timeline)} aria-label={intl.formatMessage(messages.home_timeline)}><Icon id='home' fixedWidth /></Link>
)}
{!columns.some(column => column.get('id') === 'NOTIFICATIONS') && (
<Link to='/notifications' className='drawer__tab' title={intl.formatMessage(messages.notifications)} aria-label={intl.formatMessage(messages.notifications)}><Icon id='bell' fixedWidth /></Link>

View file

@ -80,7 +80,7 @@ class GettingStarted extends ImmutablePureComponent {
const { myAccount, fetchFollowRequests, multiColumn } = this.props;
if (!multiColumn && window.innerWidth >= NAVIGATION_PANEL_BREAKPOINT) {
this.context.router.history.replace('/home');
this.context.router.history.replace('/');
return;
}

View file

@ -469,7 +469,7 @@ class UI extends React.PureComponent {
handleHotkeyBack = () => {
if (window.history && window.history.length === 1) {
this.context.router.history.push('/home'); // homehack
this.context.router.history.push('/');
} else {
this.context.router.history.goBack();
}
@ -490,7 +490,7 @@ class UI extends React.PureComponent {
}
handleHotkeyGoToHome = () => {
this.context.router.history.push('/home');
this.context.router.history.push('/');
}
handleHotkeyGoToNotifications = () => {