diff --git a/src/Controller/ElFinderController.php b/src/Controller/ElFinderController.php index 044ec35..62c3405 100644 --- a/src/Controller/ElFinderController.php +++ b/src/Controller/ElFinderController.php @@ -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]),