Changeset 3862 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/modules/router.jsx
- Timestamp:
- 08/26/2016 07:58:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/modules/router.jsx
r3847 r3862 9 9 import NotFound from 'components/404'; 10 10 import Page from 'components/page'; 11 import Plugin from 'components/plugin'; 11 12 import PluginDirectory from 'components'; 12 13 import Search from 'components/search'; … … 20 21 21 22 export default ( 22 <Router history={ history } >23 <Router history={ history } onUpdate={ () => window.scrollTo( 0, 0 ) }> 23 24 <Route name="root" component={ PluginDirectory }> 24 25 <Route path="/" components={ { header: SiteHeader, main: SiteMain } }> … … 28 29 <Route path="developers" component={ Page } /> 29 30 <Route path="search/:searchTerm" component={ Search } /> 30 <Route path=": plugin" component={ FrontPage} />31 <Route path=":slug" component={ Plugin } /> 31 32 <Route path="*" component={ NotFound } /> 32 33 </Route>
Note: See TracChangeset
for help on using the changeset viewer.