Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #491 - mainUrl was not an absolute path #493

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Fixes #491 - mainUrl was not an absolute path #493

merged 1 commit into from
Feb 13, 2023

Conversation

UlrichHP
Copy link
Contributor

Following issue #491, in ElFinderController, when defining $mainUrl at line 229, this is a relative path and not absolute.
To make it absolute, a / have been added according to the Symfony documentation.

@helios-ag helios-ag merged commit 68a3b90 into helios-ag:main Feb 13, 2023
@UlrichHP UlrichHP deleted the patch-1 branch February 13, 2023 14:35
@@ -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');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is already merged but shouldn't this code also contain the assets_path? see example config https://github.com/helios-ag/FMElfinderBundle#add-configuration-options-to-your-configyaml where we can define a asset path?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just confirmed for me when having assets_path set and chaning this line to:

        $mainUrl = $package->getUrl(sprintf('%s/bundles/fmelfinder/js', $this->params['assets_path']));

I loads my assets file for elfinder again

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a issue: #497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants