I don't know why not found component is not rendering it always matches the parent component and if user is not logged in it throw him to home page.
import Home from './containers/Home';
import PrivateLayout from './containers/PrivateLayout';
import NewTest from './containers/NewTest'
import TestBoard from './containers/TestBoard';
import Profile from './containers/Profile';
import NotFound from './containers/NotFound';
import PublicLayout from './containers/PublicLayout';
export default [
{
...Home,
path:'/',
exact:true
},
{
...PublicLayout,
routes:[
{
...Profile,
path:'/@:username',
exact:true
},
{
...PrivateLayout,
routes:[
{
...TestBoard,
path:'/home',
exact:true
},
{
...NewTest,
path:'/test/:username',
exact:true
}
]
}
]
},
{
...NotFound
},
]
This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!
What about this #5429