TYPO3扩展输出由TYPO3改变?

时间:2012-07-03 15:38:04

标签: typo3

TYPO3似乎改变了我的前端扩展的输出。

简单测试用例:

function main($content, $conf)
{
        $this->conf = $conf;
        $this->pi_setPiVarDefaults();
        $this->pi_loadLL();

        return '<a href="#test">test</a>';
}

当我在前端调用带有此扩展名的页面时,我得到:

<a href="pagename/?no_cache=1&action=show&id=3378#test">test</a>

基本上它会将我用来访问页面的路径添加到锚链接。 什么可能导致这种行为? RealURL?

如何禁用它?

1 个答案:

答案 0 :(得分:2)

您的TS模板(在安装程序中)可能有somwhere启用前缀:

config.prefixLocalAnchors = all

注意,如果您设置了config.baseURL=http://some.tld/并启用了RealURL,那么这是必需的,否则所有锚链接都将重定向到主页:

http://some.tld/#test

而不是

http://some.tld/pagename/sub/other-sub#test
相关问题