Ui-router: the state changes but the url does not change


#1

Hi,
I have a problem with ui-router and states. This is my module:

.config(function($stateProvider, $urlRouterProvider) {
  $stateProvider
    .state('index', {
        url: '/index',
        templateUrl: 'templates/index.html',
        controller: 'MainController'
    })
    .state('catalogo', {
        url: '/catalogo',
        templateUrl: 'templates/catalogo.html',
        controller: 'CatalogoController'
    })
    // if none of the above states are matched, use this as the fallback
    //$urlRouterProvider.otherwise('/index');
});

This is my controller:

var mod = angular.module('starter');
mod.controller('MainController', function($scope, $state, $ionicModal) {
  $scope.clickCatalogo = function(item) {
      $scope.scegliCatalogoModal.hide();
      $state.go('catalogo');
  };
})

My problem is that $state.go works but it does not change url.

Any helps?

Thanks