Neos.Neos/Classes/Service/BackendRedirectionService.php
public function getAfterLoginRedirectionUri(ActionRequest $actionRequest)
    {
        $user = $this->userService->getBackendUser();
        if ($user === null) {
            return null;
        }

        $workspaceName = $this->userService->getPersonalWorkspaceName();
        $this->createWorkspaceAndRootNodeIfNecessary($workspaceName);

        $uriBuilder = new UriBuilder();
        $uriBuilder->setRequest($actionRequest);
        $uriBuilder->setFormat('html');
        $uriBuilder->setCreateAbsoluteUri(true);

        $nodeToEdit = $this->getLastVisitedNode($workspaceName);
        if ($nodeToEdit === null) {
            $contentContext = $this->createContext($workspaceName);
            $nodeToEdit = $contentContext->getCurrentSiteNode();
        }

        $arguments = array_merge(['node' => $nodeToEdit], $this->routingValuesAfterLogin);
        return $uriBuilder->uriFor($this->routingValuesAfterLogin['@action'], $arguments, $this->routingValuesAfterLogin['@controller'], $this->routingValuesAfterLogin['@package']);
    }
public function getAfterLoginRedirectionUri(ActionRequest $actionRequest)
    {
        $user = $this->userService->getBackendUser();
        if ($user === null) {
            return null;
        }

        $workspaceName = $this->userService->getPersonalWorkspaceName();
        $this->createWorkspaceAndRootNodeIfNecessary($workspaceName);

        $uriBuilder = new UriBuilder();
        $uriBuilder->setRequest($actionRequest);
        $uriBuilder->setFormat('html');
        $uriBuilder->setCreateAbsoluteUri(true);

        $nodeToEdit = $this->getLastVisitedNode($workspaceName);
        if ($nodeToEdit === null) {
            $contentContext = $this->createContext($workspaceName);
            $nodeToEdit = $contentContext->getCurrentSiteNode();
        }

        $arguments = array_merge(['node' => $nodeToEdit], $this->routingValuesAfterLogin);
        return $uriBuilder->uriFor($this->routingValuesAfterLogin['@action'], $arguments, $this->routingValuesAfterLogin['@controller'], $this->routingValuesAfterLogin['@package']);
    }
public function getAfterLoginRedirectionUri ( ActionRequest $ actionRequest ) { $ user = $ this -> userService -> getBackendUser ( ) ; if ( $ user === null ) { return null ; } $ workspaceName = $ this -> userService -> getPersonalWorkspaceName ( ) ; $ this -> createWorkspaceAndRootNodeIfNecessary ( $ workspaceName ) ; $ uriBuilder = new UriBuilder ( ) ; $ uriBuilder -> setRequest ( $ actionRequest ) ; $ uriBuilder -> setFormat ( 'html' ) ; $ uriBuilder -> setCreateAbsoluteUri ( true ) ; $ nodeToEdit = $ this -> getLastVisitedNode ( $ workspaceName ) ; if ( $ nodeToEdit === null ) { $ contentContext = $ this -> createContext ( $ workspaceName ) ; $ nodeToEdit = $ contentContext -> getCurrentSiteNode ( ) ; } $ arguments = array_merge ( [ 'node' => $ nodeToEdit ] , $ this -> routingValuesAfterLogin ) ; return $ uriBuilder -> uriFor ( $ this -> routingValuesAfterLogin [ '@action' ] , $ arguments , $ this -> routingValuesAfterLogin [ '@controller' ] , $ this -> routingValuesAfterLogin [ '@package' ] ) ; }
Returns a specific URI string to redirect to after the login; or NULL if there is none.

@param ActionRequest $actionRequest
@return string
Returns a specific URI string to redirect to after the login ; or NULL if there is none .