Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TYPO3扩展输出被TYPO3更改?_Typo3 - Fatal编程技术网

TYPO3扩展输出被TYPO3更改?

TYPO3扩展输出被TYPO3更改?,typo3,Typo3,TYPO3似乎改变了前端扩展的输出 简单测试用例: function main($content, $conf) { $this->conf = $conf; $this->pi_setPiVarDefaults(); $this->pi_loadLL(); return '<a href="#test">test</a>'; } function main($content,$conf

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

简单测试用例:

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

        return '<a href="#test">test</a>';
}
function main($content,$conf)
{
$this->conf=$conf;
$this->pi_setPiVarDefaults();
$this->pi_loadLL();
返回“”;
}
当我调用前端带有此分机的页面时,我得到:

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

基本上,它预先设置了我用来访问页面到锚链接的路径。 是什么导致了这种行为?RealURL


如何禁用它?

您可能在TS模板(设置中)中启用了前缀:

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

http://some.tld/#test
而不是

http://some.tld/pagename/sub/other-sub#test

谢谢,就是这样:)我只是在我的扩展名所在的页面上创建了一个模板,上面写着:config.prefixLocalAnchors>你最好像
realurl
手册建议的那样使用
config.absRefPrefix