[BUGFIX] Fixed broken links in file reference list 24/53024/2
authorChrister Vindberg <cvi@systime.dk>
Mon, 29 May 2017 08:49:01 +0000 (10:49 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 2 Jun 2017 10:58:14 +0000 (12:58 +0200)
Changed so file reference list icon and title links don't throw an
exception

The fluid template used a url as a pageUid, which caused typo3 to
throw an exception.

Resolves: #81357
Releases: master, 8.7
Change-Id: Ibbb8d7d51d1b65e9178082f59e34fdfbb501d2fa
Reviewed-on: https://review.typo3.org/53024
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Resources/Private/Templates/ContentElement/ElementInformation.html

index ed1f240..5a19c67 100644 (file)
     <tr>
         <f:if condition="{line.record}">
             <f:then>
-                <td class="col-icon"><f:link.page pageUid="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</f:link.page></td>
-                <td class="col-title"><f:link.page pageUid="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</f:link.page></td>
+                <td class="col-icon"><a href="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</a></td>
+                <td class="col-title"><a href="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</a></td>
                 <td>{line.title}</td>
                 <td><span title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:page')}: {line.parentRecordTitle} (uid={line.record.pid})">
                         {line.record.uid}
     <tr>
         <f:if condition="{line.record}">
             <f:then>
-                <td class="col-icon"><f:link.page pageUid="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</f:link.page></td>
-                <td class="col-title"><f:link.page pageUid="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</f:link.page></td>
+                <td class="col-icon"><a href="{line.url}" title="id={line.record.uid}">{line.icon -> f:format.raw()}</a></td>
+                <td class="col-title"><a href="{line.url}" title="[id={line.record.uid}] {line.recordTitle}">{line.recordTitle -> f:format.crop(maxCharacters: maxTitleLength)}</a></td>
                 <td>{line.title}</td>
                 <td>{line.row.ref_uid}</td>
             </f:then>