Project

General

Profile

Actions

Bug #16996

closed

automaketemplate relPathPrefix and fragments

Added by Robert Wruck about 17 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-02-16
Due date:
% Done:

0%

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

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

5003_take2.patch (956 Bytes) 5003_take2.patch Administrator Admin, 2010-05-07 03:23
Actions #1

Updated by Jigal van Hemert over 14 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;

Actions #2

Updated by Benni Mack almost 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)

Actions #3

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF