concrete/src/User/PostLoginLocation.php
public function getSessionPostLoginUrl($resetSessionPostLoginUrl = false)
    {
        $result = '';
        $normalized = $this->session->get(static::POSTLOGIN_SESSION_KEY);
        if ($this->valn->integer($normalized, 1)) {
            $page = Page::getByID($normalized);
            if ($page && !$page->isError()) {
                $result = (string) $this->resolverManager->resolve([$page]);
            }
        } elseif (strpos((string) $normalized, '/') !== false) {
            $result = $normalized;
        }

        if ($resetSessionPostLoginUrl) {
            $this->resetSessionPostLoginUrl();
        }

        return $result;
    }
public function getSessionPostLoginUrl($resetSessionPostLoginUrl = false)
    {
        $result = '';
        $normalized = $this->session->get(static::POSTLOGIN_SESSION_KEY);
        if ($this->valn->integer($normalized, 1)) {
            $page = Page::getByID($normalized);
            if ($page && !$page->isError()) {
                $result = (string) $this->resolverManager->resolve([$page]);
            }
        } elseif (strpos((string) $normalized, '/') !== false) {
            $result = $normalized;
        }

        if ($resetSessionPostLoginUrl) {
            $this->resetSessionPostLoginUrl();
        }

        return $result;
    }
public function getSessionPostLoginUrl ( $ resetSessionPostLoginUrl = false ) { $ result = '' ; $ normalized = $ this -> session -> get ( static :: POSTLOGIN_SESSION_KEY ) ; if ( $ this -> valn -> integer ( $ normalized , 1 ) ) { $ page = Page :: getByID ( $ normalized ) ; if ( $ page && ! $ page -> isError ( ) ) { $ result = ( string ) $ this -> resolverManager -> resolve ( [ $ page ] ) ; } } elseif ( strpos ( ( string ) $ normalized , '/' ) !== false ) { $ result = $ normalized ; } if ( $ resetSessionPostLoginUrl ) { $ this -> resetSessionPostLoginUrl ( ) ; } return $ result ; }
Get the post-login URL as stored in the session.

@param bool $resetSessionPostLoginUrl Should the post-login-related data stored in session be cleared?

@return string Empty string if unavailable
Get the post - login URL as stored in the session .