Skip to content

Commit

Permalink
Move "getting started" to its own route
Browse files Browse the repository at this point in the history
  • Loading branch information
ticky committed Jan 5, 2017
1 parent 9bb1b97 commit 0c600e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/components/containers/mastodon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
useRouterHistory,
Router,
Route,
IndexRedirect,
IndexRoute
} from 'react-router';
import { useScroll } from 'react-router-scroll';
Expand Down Expand Up @@ -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} />
Expand Down

0 comments on commit 0c600e9

Please sign in to comment.