Closed MoradiGit closed 4 years ago
I have the same error, do you have the solution??
@christiantigre Create a new layout under Containers/,just like Default Layout and create two set of routes. One _newLayoutRoutes.js and newLayoutRoutes.js. Similar to _nav.js and routes.js.
@mojojojo20 i dont underestand please explain more ..
my problem is here this codes not working because each of routes just accept path="/" and dont working with path="/Home"
`
<Route path="/Home" name="Home" render={props => <DefaultLayout {...props}/>} />
<Route path="/" name="OutHome" render={props => <DefaultOutLayout {...props}/>} />
</Switch>`
@MoradiGit Have you updated your routes.js file ? Can you post the contents of your routes.js file here ?
@mojojojo20 hi `const routes = [
{ path: '/', exact: true, name: 'home' }, { path: '/dashboard', name: 'dash', component: Dashboard },
/////////////////////////////////////
{ path: '/icons', exact: true, name: 'Icons', component: CoreUIIcons }, { path: '/icons/coreui-icons', name: 'CoreUI Icons', component: CoreUIIcons }, { path: '/icons/flags', name: 'Flags', component: Flags }, { path: '/icons/font-awesome', name: 'Font Awesome', component: FontAwesome }, { path: '/icons/simple-line-icons', name: 'Simple Line Icons', component: SimpleLineIcons },]`
this is my route
This is a routing issue. Please look up react-router
and react-router-dom
documentation.
@MoradiGit I am also having the same issue I want two dashboard but I am not getting how to do it .if you have solved the issue please update the code here.
Why create submenu in navConfig?
Hi I have Costumize react core Ui i have two dashboard but only onse routing work what should i do ?
DefaultLayout.js and DefaultOutLayout.js
App.js
routes
and
outrouts.js
i really confused because i do up work but at end i cand load dashboard and just outroutes working but routes is not working
i want DefaultLayout.js render after DefaultOutLayout.js
or my first layout is DefaultOutLayout.js and after i login i want to render DefaultLayout.js