Hallo,
in der config.php eines Bundles A lade ich eine *.js-Datei und
in der config.php eines Bundles B lade ich eine *.js-Datei
Im Frontend werden diese aber verschachtelt dargestellt
Bundle A
PHP-Code:
<?php
$GLOBALS['TL_BODY'][] = '<script src="/bundles/berecontcontaogetbootstrap/js/bootstrap.bundle.js">';
Bundle B
PHP-Code:
<?php
$GLOBALS['TL_BODY'][] = '<script src="/bundles/berecontcontaoscrolltotop/js/script.js">';
Frontend:
Code:
<script src="/bundles/berecontcontaogetbootstrap/js/bootstrap.bundle.js"><script src="/bundles/berecontcontaoscrolltotop/js/script.js"><script type="application/ld+json">
[
{
"@context": "https:\/\/schema.org",
"@graph": [
{
"@type": "WebPage"
}
]
},
{
"@context": "https:\/\/schema.contao.org",
"@graph": [
{
"@type": "Page",
"fePreview": false,
"groups": [],
"noSearch": false,
"pageId": 2,
"protected": false,
"title": "Brooklyn"
}
]
}
]
</script>
Wie kann ich dieses Verhalten verhindern?
Lesezeichen