Disable section name link and eliminate wrong link format
- make link compliant to prefixLocalAnchors / xhtml_cleaning
- make this link generation configurable (enable / disable link generation for section names via TS). For "unknown sections" there is no link, too. A link is not necessary from my point of view (and is not compatible to accessibility standards).
Relevant code fragment from pi-class (CVS 1795):
750 $onclick = 'document.'.$this->prefixId.'[\''.$this->prefixId.'[_sections]\'].value=\''.$theRLid.'\';document.'.$this->prefixId.'.submit();return false;';
751 $sectionTitleLinked = '<a href="#" onclick="'.htmlspecialchars($onclick).'">'.htmlspecialchars($sectionName).':</a>';
(issue imported from #M4667)
Updated by Andreas Kastl almost 17 years ago
I just changed lines 750 and 751 to disable link generation completely, but this may not be the solution you are looking for:
$sectionTitleLinked = htmlspecialchars($sectionName);
I'm not really familiar with link generator classes / functions of typo3 and xhtml_cleaning mechanism.
The reason for the bug may be eventually that your link does not contain anchor name (only '#' instead of '#name'). Perhaps this hides it from xhtml cleaning (not tested)? Your other links inside browsebar (to link to anchors '#'+md5 of id) work very well and are cleaned out correctly.
Updated by Ralf Hettinger over 10 years ago
I'd suggest to have a TS property which can turn off linking of section titles:
Apart from that a no-brainer imo.