Project

General

Profile

Actions

Bug #19040

closed

absRefPrefix does not recognize EXT: and typo3conf/ext/

Added by Benni Mack over 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2008-06-30
Due date:
% Done:

0%

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

Description

Hey all,

if you use config.absRefPrefix = http://www.domain.com/ it works just nice for e.g. my CSS files in fileadmin/css or all media files, but if I include static CSS or JS files from templates, it does not work. So basically I have this in my TS setup:

page.includeCSS.file1 = fileadmin/templates/mycss.css
page.includeCSS.file2 = EXT:myext/mycss.css

in my HTML output it looks like this:

<link rel="stylesheet" type="text/css" href="typo3conf/ext/myext/mycss.css" />
<link rel="stylesheet" type="text/css" href="fileadmin/templates/mycss.css" />

Now I add

page.config.absRefPrefix = /

then the output is

<link rel="stylesheet" type="text/css" href="typo3conf/ext/myext/mycss.css" />
<link rel="stylesheet" type="text/css" href="/fileadmin/templates/mycss.css" />

so it's missing the prefix.

The patch also fixes the hardcoded fileadmin directory in that case.
(issue imported from #M8864)


Files

20080630_absrefprefix.patch (1.3 KB) 20080630_absrefprefix.patch Administrator Admin, 2008-06-30 15:16
Actions #1

Updated by Martin Kutschker over 16 years ago

Fixed in trunk.
Fixed in TYPO3_4-2 (fileadmin location fix only)

Actions #2

Updated by Ingo Renner about 16 years ago

closed as it is shipped with 4.2.2

Actions

Also available in: Atom PDF