$scope.cancel = function () { $log.debug("Cancel") $scope.form.$setPristine(); $scope.showForm = false; window.location.href = userService.baseUrl; };It works, but I can see the re-loading of the page which I don't like. Is there another way to go to the root of the application but not doing a page re-load? If the last line is commented, the forms is no longer shown, but the path remains the same, which is wrong.