TYPO3 bootstrap_core 将路径更改为包含

TYPO3 bootstrap_core changes paths to includes

我刚刚在一分钟前安装了 bootstrap_core 扩展程序,但我的 TypoScript 包含有问题。

在我的 TypoScript 中,我写了以下内容:

includeJS.jQuery = http://code.jquery.com/jquery-latest.min.js
includeJS.bs = fileadmin/bs/js/bootstrap.min.js
includeJS.mainJS = fileadmin/js/main.js
includeCSS.bootstrap= fileadmin/bs/css/bootstrap.min.css
includeCSS.fontAwesome = fileadmin/font-awesome-4.6.2/css/font-awesome.min.css
includeCSS.mainCSS = fileadmin/css/main.css

在 bootstrap_core 扩展未激活的情况下,这很好用。 但是,如果扩展处于活动状态,则在页面上的路径前添加一个/:

<img id="logo" class="img-responsive centered" src="/fileadmin/images/personenbetreuung-christina-watzinger.svg">

这会导致页面出错,因为无法正确转换路径。

有人知道如何解决这个问题吗?

无需检查分机,我很确定它设置了以下属性之一:

config {
  absRefPrefix = 
  baseURL = 
}

如果 TYPO3 安装在子目录中,使用 / 应该只会破坏您的 TYPO3 安装。因此,最好将 absRefPrefix 设置为 /subfolder/