Skip to content

Commit

Permalink
Fixes #491 - mainUrl was not an absolute path (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
UlrichHP authored Feb 13, 2023
1 parent 8ad5ec8 commit 68a3b90
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 @@ -226,7 +226,7 @@ public function mainJS()
{
$version = new EmptyVersionStrategy();
$package = new Package($version);
$mainUrl = $package->getUrl('bundles/fmelfinder/js');
$mainUrl = $package->getUrl('/bundles/fmelfinder/js');
return new Response(
$this->twig->render('@FMElfinder/Elfinder/helper/main.js.twig',['mainUrl' => $mainUrl]),
200,
Expand Down

0 comments on commit 68a3b90

Please sign in to comment.