Browse Source

Move "getting started" to its own route

closed-social-v3
Jessica Stokes 7 years ago
parent
commit
0c600e9db6
No known key found for this signature in database GPG Key ID: E3DE5BE038F70FE9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/assets/javascripts/components/containers/mastodon.jsx

+ 3
- 1
app/assets/javascripts/components/containers/mastodon.jsx View File

@ -16,6 +16,7 @@ import {
useRouterHistory,
Router,
Route,
IndexRedirect,
IndexRoute
} from 'react-router';
import { useScroll } from 'react-router-scroll';
@ -107,8 +108,9 @@ const Mastodon = React.createClass({
<Provider store={store}>
<Router history={browserHistory} render={applyRouterMiddleware(useScroll())}>
<Route path='/' component={UI}>
<IndexRoute component={GettingStarted} />
<IndexRedirect to="/getting_started" />
<Route path='getting_started' component={GettingStarted} />
<Route path='timelines/home' component={HomeTimeline} />
<Route path='timelines/mentions' component={MentionsTimeline} />
<Route path='timelines/public' component={PublicTimeline} />

Loading…
Cancel
Save