I'm trying to use the treeview of AdminLTE in the system menu, but every time I click the menu item it goes back to the login.
For example:
When I click Dashboard, Graph or Management, it returns to the login
HTML treeview excerpt:
<li class="treeview">
<a href="#">
<i class="fa fa-power-off"></i>
<span>Gerenciamento</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="treeview">
<a>
<i class="fa fa-circle-o"></i><span>Digiboard</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li><a routerLinkActive="ative" [routerLink]="['/gerenciar-dispositivo']"><i class="fa fa-circle"></i>Gerenciamento de dispositivos</a></li>
</ul>
</li>
</ul>
</li>
This is the menu:
Routes:
export const ROUTES: Routes = [
{
path: 'sistema',
component: LayoutComponent,
children: [
{path: 'estacao', loadChildren: './estacao/estacao.module#EstacaoModule' },
{path: 'gerenciar-dispositivo', loadChildren: './gerenciar-dispositivos/gerenciar-dispositivos.module#GerenciarDispositivosModule'}
]
},
{path: '', component: LoginComponent},
{path: ':to', component: LoginComponent}
]
Every time I click on the menu it goes back to the login, why?