[BUGFIX] Element browser: correct the display of current link to file
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / Classes / Browser / ElementBrowser.php
index f305ed2..201f346 100644 (file)
@@ -2333,9 +2333,7 @@ class ElementBrowser {
         */
        public function printCurrentUrl($str) {
                // Output the folder or file identifier, when working with files
-               if (isset($str) && MathUtility::canBeInterpretedAsInteger($str)
-                       && ($this->act === 'file' || $this->act === 'folder')
-               ) {
+               if (isset($str) && MathUtility::canBeInterpretedAsInteger($str)) {
                        try {
                                $fileObject = ResourceFactory::getInstance()->retrieveFileOrFolderObject($str);
                        } catch (Exception\FileDoesNotExistException $e) {