public function getDefaultPostLoginUrl()
    {
        $result = '';
        $loginRedirectMode = (string) $this->config->get('concrete.misc.login_redirect');
        switch ($loginRedirectMode) {
            case 'CUSTOM':
                $loginRedirectCollectionID = $this->config->get('concrete.misc.login_redirect_cid');
                if ($this->valn->integer($loginRedirectCollectionID, 1)) {
                    $page = Page::getByID($loginRedirectCollectionID);
                    if ($page && !$page->isError()) {
                        $result = (string) $this->resolverManager->resolve([$page]);
                    }
                }
                break;
            case 'DESKTOP':
                $desktop = DesktopList::getMyDesktop();
                if ($desktop && !$desktop->isError()) {
                    $result = (string) $this->resolverManager->resolve([$desktop]);
                }
                break;
        }

        return $result;
    }