helios-ag / FMElfinderBundle

:file_folder: ElFinderBundle provides ElFinder integration with TinyMCE, CKEditor, Summernote editors
MIT License
274 stars 127 forks source link

ElFinderConfigurationReader->getURL should not use getUriForPath #360

Open mwoynarski opened 5 years ago

mwoynarski commented 5 years ago
Issue Type:

Please pick one and delete the rest:

Bundle Version:

Master

Summary:

The usage of getUriForPath when using a relative url in ElFinderConfigurationReader breaks relative links everywhere except the default environment, as the file url in every other environment becomes http://mysite.com/app_env.php/path/to/uploaded/file, rather than the expected http://mysite.com/path/to/uploaded/file This method should be returning a simple, un-prefixed relative url.

I have tentatively fixed this in https://github.com/mwoynarski/FMElfinderBundle/commit/13607c1b77d1e24d7013fcf65c7e5d0fefe7e951