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;
    }