From 68a3b900a49894feaf5bf500c92376e5d1bc9925 Mon Sep 17 00:00:00 2001 From: Ulrich Date: Mon, 13 Feb 2023 15:27:16 +0100 Subject: [PATCH] Fixes #491 - mainUrl was not an absolute path (#493) --- src/Controller/ElFinderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/ElFinderController.php b/src/Controller/ElFinderController.php index edf67b6..f6f42c4 100644 --- a/src/Controller/ElFinderController.php +++ b/src/Controller/ElFinderController.php @@ -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,