if (
                $state.current.name === currentRootState &&
                (!$state.includes("**.tiedot") || !$stateParams.perusteId)
            ) {
                $state.go(