Skip to content

Commit

Permalink
Fix the script path
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jan 4, 2023
1 parent 9adb5c4 commit 32e80b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-bundle/contao/library/Contao/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ public static function addStaticUrlTo($script, ContaoContext $context = null)

if ($strStaticUrl = $context->getStaticUrl())
{
return $strStaticUrl . $script;
return $strStaticUrl . ltrim($script, '/');
}

return $script;
Expand Down

0 comments on commit 32e80b8

Please sign in to comment.