getTypoScriptFrontendController(); $linkLocation = $fileOrFolderObject->getPublicUrl(); if ($linkLocation === null) { // set the linkLocation to an empty string if null, // so it does not collide with the various string functions $linkLocation = ''; } // Setting title if blank value to link $linkText = $this->encodeFallbackLinkTextIfLinkTextIsEmpty($linkText, rawurldecode($linkLocation)); if (strpos($linkLocation, '/') !== 0 && parse_url($linkLocation, PHP_URL_SCHEME) === null ) { $linkLocation = $tsfe->absRefPrefix . $linkLocation; } $url = $this->processUrl(UrlProcessorInterface::CONTEXT_FILE, $linkLocation, $conf); if (!empty($linkDetails['fragment'])) { $url .= '#' . $linkDetails['fragment']; } return [ $this->forceAbsoluteUrl($url, $conf), $linkText, $target ?: $this->resolveTargetAttribute($conf, 'fileTarget', false, $tsfe->fileTarget) ]; } }