**UPDATE**:

when the instruction of state.go is execute the url chenge from 

`http/localhost:8100/login.html` 

into 

`http/localhost:8100/login.html#/main.html`

i'm developing an app and using `$state.go();` it doesn't chenge the page, i've did a quick debug with the console and i haven't received any errors.
I've also tried `$location.path();` and the result is the same.
in the moment i'm trying to change page after the login, so from login.html to main.html that are in the same folder
This is my code:

```
angular.module('starter', ['ionic', 'ui.router'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    if (window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
      cordova.plugins.Keyboard.disableScroll(true);

    }
    if (window.StatusBar) {
      StatusBar.styleDefault();
    }
  });
})

.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
  $stateProvider

    .state('login', {
    url: '/login',
    //abstract : true, // Because your are have child-states under de 'splash' state, you should set it abstract : true;
    templateUrl: '/login.html',
    controller: "LogiCtrl"
  })

    .state('main', {
        url: "/main",
        templateUrl: "templates/main.html",
    })
}])

.controller('LoginCtrl', function($scope, $http, $state, $ionicHistory) {
    $scope.data = {};
    $scope.data.funzione = "login";
    $scope.submit = function(){
        console.clear();
        console.log("Dentro funzione");
        console.log($scope.data.funzione);
        var link = 'http://localhost/<path>/api.php';
        $http.post(link, {mail : $scope.data.mail}, {pwd : $scope.data.pwd}, {funzione : $scope.data.funzione})
            .then(function (res){
                console.log("Dentro http.post");
                $scope.response = res.data;
                console.log($scope.response);
                if ($scope.response != "F"){
                    console.log("Dentro if");
                    $state.go('main');
                } else {
                    console.log("Dentro else");
                }
            });
    };
});

```

**EDIT**

[![](https://i.stack.imgur.com/czmUe.png)](https://i.stack.imgur.com/czmUe.png)

How can i solved this problem?

Thank's