Skip to content

Commit

Permalink
Fixes #497 mainUrl didn't contain asset path
Browse files Browse the repository at this point in the history
  • Loading branch information
JohJohan committed Jun 26, 2023
1 parent 37c3db0 commit 1cf1f39
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 @@ -224,7 +224,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]),
200,
Expand Down

0 comments on commit 1cf1f39

Please sign in to comment.