/** * Returns the web URI to be used to publish the specified persistent resource * * @param \TYPO3\FLOW3\Resource\Resource $resource The resource to build the URI for * @return string The web URI */ protected function buildPersistentResourceWebUri(\TYPO3\FLOW3\Resource\Resource $resource) { $filename = $resource->getFilename(); $rewrittenFilename = $filename === '' || $filename === NULL ? '' : '/' . $this->rewriteFilenameForUri($filename); return $this->getResourcesBaseUri() . 'Persistent/' . $resource->getResourcePointer()->getHash() . $rewrittenFilename; }