[TYPO3] RealURL bug?

Xander Damen xander at roquin.nl
Thu Dec 14 17:19:17 CET 2006


Hi,

Today I encountered the following problem/bug:

To add some specific javascripts to all of my templates (and I don't 
want it to link to the location of the templates as TV does for me ;-)) 
I use the following code:

lib.stylesheetswitcher = TEXT
lib.stylesheetswitcher.value (
		<span class="hide"><strong>CHOOSE FONTSIZE:</strong></span>
		<a href="#" onclick="setActiveStyleSheet('standaard'); return false;" 
class="standaard" id="imgKlein" title="Deze website in standaard 
tekstgrootte">A</a>
		<a href="#" onclick="setActiveStyleSheet('middel'); return false;" 
class="middel" id="imgGroot" title="Deze website in middelgrote 
letters">A</a>
		<a href="#" onclick="setActiveStyleSheet('groot'); return false;" 
class="groot" id="imgGroter" title="Deze website in grote letters">A</a>
)

(yeah yeah it's dutch ;-p)


It works fine on all pages except on the page called 404 (which has the 
realURL path 404).
The output is as follows:
<span class="hide"><strong>CHOOSE FONTSIZE: </strong></span>
		04.html#" onclick="setActiveStyleSheet('standaard'); return false;" 
class="standaard" id="imgKlein" title="Deze website in standaard 
tekstgrootte">A</a>
		04.html#" onclick="setActiveStyleSheet('middel'); return false;" 
class="middel" id="imgGroot" title="Deze website in middelgrote 
letters">A</a>
		04.html#" onclick="setActiveStyleSheet('groot'); return false;" 
class="groot" id="imgGroter" title="Deze website in grote letters">A</a>

So the <a href="4 is removed. Changing the realURL path to error404 
fixed this bug.
Every path that begins with a number gets the <a href="X removed. It 
only occurs for the links inserted by the typoscript object, links 
generated from content elements by typo3 itself are not affected.

I've fixed the problem for the site by changing the path, but it does 
seem a bug :) Before reporting the bug, I have a question: is this a 
realURL or a typo3 core bug? I know Dmitry Dulepov comes around here a 
lot, guess he knows ;)


Regards,

Xander


More information about the TYPO3-english mailing list