$scope.$on("$stateChangeSuccess", function() {
            if ($state.current.name === epEsitysSettings.perusopetusState) {
                $state.go(".tiedot", { perusteId: $scope.peruste.id }, { location: "replace" });
            }
        });