public function getUri($pageUid, $forceTsfe = false)
    {
        if (!isset($GLOBALS['TSFE'])) {
            if ($forceTsfe) {
                (new Tsfe)->create($this->getRootPage($pageUid));
            } else {
                throw new Exception('TSFE must be available to use this method');
            }
        }

        return $GLOBALS['TSFE']->cObj->typoLink_URL([
            'parameter' => $pageUid,
            'forceAbsoluteUrl' => true,
            'linkAccessRestrictedPages' => 1,
            'useCacheHash' => true
        ]);
    }