http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692017-09-28T11:12:58ZTYPO3 ForgeTYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=3412822017-09-28T11:12:58ZRémy DANIEL
<ul></ul><p>Something also weird. In a fluid template:</p>
<pre>
<img src="{f:uri.resource(...)}" />
--> output an uri correctly prefixed with absRefPrefix
<div style="background-image: url({f:uri.resource(...)))"></div>
--> uri is not prefixed with absRefPrefix
</pre> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=3426492017-10-17T23:12:44ZSusanne Moogsusanne.moog@typo3.org
<ul><li><strong>Category</strong> set to <i>Extbase</i></li></ul> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4086342019-10-27T00:07:55ZRiccardo De Contardierredeco@gmail.com
<ul></ul><p>Test done with 9.5.0 and:</p>
<p>- an image <code>EXT:siteconf/Resources/Public/Assets/Images/sample1.png</code><br />- TS Setup:</p>
<pre>
config {
absRefPrefix = /foo/
}
</pre>
<table>
<tr>
<th>Fluid code </th>
<th>Result </th>
<th>Absrefprexix applied? </th>
</tr>
<tr>
<td> <code><img src="{f:uri.resource(path:'Assets/Images/sample1.png')}" /></code> </td>
<td> <code><img src="/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png" /></code> </td>
<td> NO </td>
</tr>
<tr>
<td> <code><div style="background-image: url({f:uri.resource(path:'Assets/Images/sample1.png')})"></div></code> </td>
<td> <code><div style="background-image: url(/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png)"></div></code> </td>
<td> NO </td>
</tr>
<tr>
<td> <code><f:uri.image src="EXT:siteconf/Resources/Public/Assets/Images/sample1.png" /></code> </td>
<td> <code>/foo/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png</code> </td>
<td> YES </td>
</tr>
<tr>
<td> <code>{f:uri.image(src:'EXT:siteconf/Resources/Public/Assets/Images/sample1.png')} </code> </td>
<td> <code>/foo/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png</code> </td>
<td> YES </td>
</tr>
</table>
<p>Moreover, the <code>absolute</code> parameter seems to work <strong>only for</strong> <code>f:uri.image</code> and is ignored for <code>f:uri.resource</code> albeit the documentation mentions it: <a class="external" href="https://docs.typo3.org/other/typo3/view-helper-reference/9.5/en-us/typo3/fluid/latest/Uri/Resource.html#absolute">https://docs.typo3.org/other/typo3/view-helper-reference/9.5/en-us/typo3/fluid/latest/Uri/Resource.html#absolute</a></p>
<p>Look also at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/41682/">https://review.typo3.org/c/Packages/TYPO3.CMS/+/41682/</a></p> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4086352019-10-27T00:08:16ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/77722">Bug #77722</a>: absRefPrefix is not applied everywhere</i> added</li></ul> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4094602019-11-10T21:59:01ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/87919">Bug #87919</a>: config.absRefPrefix not working for links in HMENU, fluid generated links like <f:link.page ... or <f:link.typolink ...</i> added</li></ul> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4253322020-05-14T15:27:52Zondro no-lastname-givenogrosko@gmail.com
<ul></ul><p>Can confirm too in typo3 v9.5.16</p> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4929802023-05-09T13:26:40ZChristian Weiske
<ul></ul><p>Using <code><f:asset.script src="EXT:myext/file.js"></code> fails to take <code>absRefPrefix</code> into account on TYPO3 v11.5.25.</p> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4988652023-08-06T08:00:19ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-1 priority-4 priority-default" href="/issues/97324">Bug #97324</a>: CSS / JS files not referenced correctly when concatenation and compression are disabled</i> added</li></ul> TYPO3 Core - Bug #82574: Inconsistent support of config.absRefPrefix in fluid/extbasehttp://forge.typo3.org/issues/82574?journal_id=4988672023-08-06T08:00:25ZRiccardo De Contardierredeco@gmail.com
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-1 priority-4 priority-default" href="/issues/99135">Bug #99135</a>: page.includeCSS with resource from fileadmin, the beginning slash is missing TYPO3 11.5.19</i> added</li></ul>