]> cat aescling's git repositories - mastodon.git/commitdiff
Move "getting started" to its own route
authorJessica Stokes <hello@jessicastokes.net>
Thu, 5 Jan 2017 03:30:02 +0000 (19:30 -0800)
committerJessica Stokes <hello@jessicastokes.net>
Thu, 5 Jan 2017 03:30:02 +0000 (19:30 -0800)
app/assets/javascripts/components/containers/mastodon.jsx

index 67045537651bba521a1f037c4e35a0292f95c405..026daeb0656d922d914641c9114ac88dc46f577e 100644 (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} />