Hi,
habe ein javascript-selectmenu, das im Browsersimulator wegen des realurl-baseTags nicht funktioniert (siehe den fetten schwarzen Satz im Zitat unten).
Das führt in der Praxis dazu, daß der relative Pfad jedesmal noch an den bestehenden Pfad in der Browser-Adresszeile angehängt wird.
Der Lösungsansatz steht im fetten blauen Satz des Zitats, damit kann ich aber als Volldepp nun überhaupt nichts anfagen... ;-(
Wäre jemand so nett und beschreibt, was man da ganz genau in der Praxis so zu tun hat?
btw.: Das Problem scheint doch grundsätzlich zu sein, wieso finde ich dazu denn nix konkretes?
Zitat:
The <base> tag method seems to work flawlessly in TYPO3 except in two cases where you have a link like <a href="#anchor_point"....> - this will not work because it refers to the site root but obviously is an 'internal' reference in the current document.
However you can solve this situation in a simple way:
config.prefixLocalAnchors = all
This will set the needed prefix for all occurencies of '<a href="#...."....' in the page; basically anywhere a local anchor is generated. This substitution happens by a ereg_replace on the general page content after rendering. See TSref for details. The other situation is specific for MSIE; When you set the "document.location" via JavaScript, MSIE will understand relative URLs as relative to the current URL, not the <base> URL. Therefore you will have to prefix the base URL. You can find that value in $GLOBALS['TSFE']->baseUrl (or use t3lib_div::getIndpEnv("TYPO3_SITE_URL")). |