Reputation: 6106
TYPO3 seems to alter the output of my Frontend extension.
Simple Testcase:
function main($content, $conf)
{
$this->conf = $conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
return '<a href="#test">test</a>';
}
When I call a page with this extension in the frontend i get:
<a href="pagename/?no_cache=1&action=show&id=3378#test">test</a>
Basically it prepends the path I used to access the page to the anchor link. What could be responsible for this behaviour? RealURL?
How can I disable it?
Upvotes: 0
Views: 238
Reputation: 55798
You probably have somwhere in your TS template (in Setup) enabled prefixing:
config.prefixLocalAnchors = all
Note, that if you have set config.baseURL=http://some.tld/
and enabled RealURL
this is required, otherwise all anchor links will be redirected to the main page:
http://some.tld/#test
instead of
http://some.tld/pagename/sub/other-sub#test
Upvotes: 2