Skip to content

Commit

Permalink
Merge pull request #509 from JohJohan/497
Browse files Browse the repository at this point in the history
Fixes #497 mainUrl didn't contain asset path
  • Loading branch information
helios-ag authored Sep 19, 2024
2 parents 252efec + 0f8aded commit 03ea9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/ElFinderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function mainJS()
{
$version = new EmptyVersionStrategy();
$package = new Package($version);
$mainUrl = $package->getUrl('/bundles/fmelfinder/js');
$mainUrl = $package->getUrl(sprintf('%s/bundles/fmelfinder/js', $this->params['assets_path']));

return new Response(
$this->twig->render('@FMElfinder/Elfinder/helper/main.js.twig',['mainUrl' => $mainUrl]),
Expand Down

0 comments on commit 03ea9ab

Please sign in to comment.