Bug #21283

absRefPrefix is prefixed with external js files

Added by Steffen Kamper almost 6 years ago. Updated almost 5 years ago.

Status:Closed Start date:2009-10-15
Priority:Should have Due date:
Assigned To:Steffen Kamper % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version:4.3 Is Regression:
PHP Version:5.3 Sprint Focus:
Complexity:

Description

When using config.absRefPrefix also external files are built with
absRefPrefix + http://...
which leads to wrong urls.

try this with set absRefPrefix:

page.includeJS {
    cooliris = http://developer.cooliris.com/shared/resources/js/cookie.js
    cooliris.external = 1
}

(issue imported from #M12247)

12247.diff Magnifier (1.9 kB) Administrator Admin, 2009-10-15 23:53

12247_v2.diff Magnifier (3.2 kB) Administrator Admin, 2009-10-16 17:45

12247_v3.diff Magnifier (4.2 kB) Administrator Admin, 2009-11-03 16:38

History

#1 Updated by Rupert Germann almost 6 years ago

I attached a new file which add absRefPrefix only when the file is not marked as external

#2 Updated by Steffen Kamper almost 6 years ago

however absRefPrefix is not needed as it's prefixed in TSFE::setAbsRefPrefix

There were two directories missing (extension) which i added:
typo3/ext
typo3/sysext

There were also 2 array-checks missing which leaded to error msg in admPanel, fixed in v3

#3 Updated by Steffen Kamper over 5 years ago

committed to trunk, rev 6379

Also available in: Atom PDF