Issue Bug Closed

#45374absRefPrefix and File Storages

Chris Müller 02/11/13, 15:29 updated 10/06/14, 09:59

Description

We encountered a problem with file storages that are not equal to fileadmin. Wie included css or javascript files via the includeCSS or includeJS file and the absRefPrefix part is not prepended to them. If the file storage points to fileadmin, the absRefPrefix is prepended.

Example:

config.absRefPrefix = /
page.includeCSS.css1 = Resources/Public/StyleSheets/style1.css
page.includeCSS.css2 = fileadmin/css/style2.css

The output is:

<link rel="stylesheet" type="text/css" href="Resources/Public/StyleSheets/style1.css" media="all" />
<link rel="stylesheet" type="text/css" href="/fileadmin/css/style2.css" media="all" />

The same problem occurs with javascript files.

I can avoid this problem if I use:

page.includeCSS.css1 = /Resources/Public/StyleSheets/style1.css

But this is not the correct handling, I think.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.