Bug #16996
closedautomaketemplate relPathPrefix and fragments
0%
Description
automaketemplate prefixes fragment-only links with the relPathPrefix:
<a href="#a42"> becomes <a href="fileadmin/template/test/#a42">
This should NOT happen if the link starts with '#'
This is especially annoying if you want to substitute a mark as in
<a href="###mylink###">
(issue imported from #M5003)
Files
Updated by Jigal van Hemert over 15 years ago
Core issue:
t3lib_parsehtml:
00994 function prefixRelPath($prefix,$srcVal,$suffix='') {
00995 $pU = parse_url($srcVal);
00996 if (!$pU['scheme'] && substr($srcVal, 0, 1)!='/' && substr($srcVal, 0, 1) != '#') { // If not an absolute URL or anchor.
00997 $srcVal = $prefix.$srcVal.$suffix;
00998 }
00999 return $srcVal;
Updated by Benni Mack over 14 years ago
Committed patch "take2" to trunk (rev. 7560)
Committed original patch to TYPO3_4-3 (rev. 7561)
Committed original patch to TYPO3_4-2 (rev. 7562)