Project

General

Profile

Actions

Bug #82574

open

Inconsistent support of config.absRefPrefix in fluid/extbase

Added by Rémy DANIEL over 6 years ago. Updated 12 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-09-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi

As an integrator I would like to see config.absRefPrefix used everywhere in the same way over my templates.

When building an uri with typolink: OK, absRefPrefix is prepended to the uri
When building an uri for an image with f:uri.image: OK, absRefPrefix is prepended to the uri
When building an uri for a resource with f:uri.resource: not OK, absRefPrefix is not prepended to the uri

Would it be possible to have a consistent usage of config.absRefPrefix all over fluid/extbase/cObj ?

Cheers

Perhaps related tickets: #81486, #82486, #77722


Related issues 4 (2 open2 closed)

Related to TYPO3 Core - Bug #77722: absRefPrefix is not applied everywhereClosed2016-08-31

Actions
Related to TYPO3 Core - Bug #87919: config.absRefPrefix not working for links in HMENU, fluid generated links like <f:link.page ... or <f:link.typolink ...Closed2019-03-15

Actions
Related to TYPO3 Core - Bug #97324: CSS / JS files not referenced correctly when concatenation and compression are disabledNew2022-04-07

Actions
Related to TYPO3 Core - Bug #99135: page.includeCSS with resource from fileadmin, the beginning slash is missing TYPO3 11.5.19New2022-11-19

Actions
Actions #1

Updated by Rémy DANIEL over 6 years ago

Something also weird. In a fluid template:

<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
Actions #2

Updated by Susanne Moog over 6 years ago

  • Category set to Extbase
Actions #3

Updated by Riccardo De Contardi over 4 years ago

Test done with 9.5.0 and:

- an image EXT:siteconf/Resources/Public/Assets/Images/sample1.png
- TS Setup:

config {
  absRefPrefix = /foo/
} 
Fluid code Result Absrefprexix applied?
<img src="{f:uri.resource(path:'Assets/Images/sample1.png')}" /> <img src="/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png" /> NO
<div style="background-image: url({f:uri.resource(path:'Assets/Images/sample1.png')})"></div> <div style="background-image: url(/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png)"></div> NO
<f:uri.image src="EXT:siteconf/Resources/Public/Assets/Images/sample1.png" /> /foo/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png YES
{f:uri.image(src:'EXT:siteconf/Resources/Public/Assets/Images/sample1.png')} /foo/typo3conf/ext/siteconf/Resources/Public/Assets/Images/sample1.png YES

Moreover, the absolute parameter seems to work only for f:uri.image and is ignored for f:uri.resource albeit the documentation mentions it: https://docs.typo3.org/other/typo3/view-helper-reference/9.5/en-us/typo3/fluid/latest/Uri/Resource.html#absolute

Look also at https://review.typo3.org/c/Packages/TYPO3.CMS/+/41682/

Actions #4

Updated by Riccardo De Contardi over 4 years ago

  • Related to Bug #77722: absRefPrefix is not applied everywhere added
Actions #5

Updated by Riccardo De Contardi over 4 years ago

  • Related to Bug #87919: config.absRefPrefix not working for links in HMENU, fluid generated links like <f:link.page ... or <f:link.typolink ... added
Actions #6

Updated by ondro no-lastname-given almost 4 years ago

Can confirm too in typo3 v9.5.16

Actions #7

Updated by Christian Weiske 12 months ago

Using <f:asset.script src="EXT:myext/file.js"> fails to take absRefPrefix into account on TYPO3 v11.5.25.

Actions #8

Updated by Riccardo De Contardi 9 months ago

  • Related to Bug #97324: CSS / JS files not referenced correctly when concatenation and compression are disabled added
Actions #9

Updated by Riccardo De Contardi 9 months ago

  • Related to Bug #99135: page.includeCSS with resource from fileadmin, the beginning slash is missing TYPO3 11.5.19 added
Actions

Also available in: Atom PDF