react-redux-starter-kit icon indicating copy to clipboard operation
react-redux-starter-kit copied to clipboard

How to redirect to particular route when no route matches.

Open techhysahil opened this issue 7 years ago • 0 comments

I have following route setup. I know this is very basic qusetion but i am little confused with this Plain route Object thing. Guy's, please help me out.

export const createRoutes = (store) => ({ path: '/reports/analyse(/:hash)', component: CoreLayout, indexRoute: Home, childRoutes: [ savedReport(store), ] } )

/savedReport/ export default (store) => ({ path : '/reports/report(/:hash)', component: SavedReportsView, })

But i want to add a route configuration so that when i hit any other route which is not there, it should automatically redirect to "/reports/analyse/" only.

techhysahil avatar Jun 23 '17 10:06 techhysahil