Hello, I'm trying to redirect the page when the url invalidates, but I'm not getting it, I've looked in other forums and I've researched but I can not find what it can be ... Follow the source:
raiz_app = $("#raiz_app").val();
$routeProvider.when('/webern', {
templateUrl: raiz_app + '/View/Template/inicio.html'
}).when('/webern/grupolojas', {
templateUrl: raiz_app + '/View/Template/Cadastros/grupolojas.html',
controller: 'controle_grupolojas'
}).otherwise({
redirectTo: '/webern'
});