FMElfinderBundle icon indicating copy to clipboard operation
FMElfinderBundle copied to clipboard

ElFinderConfigurationReader->getURL should not use getUriForPath

Open mwoynarski opened this issue 6 years ago • 0 comments

Issue Type:

Please pick one and delete the rest:

  • Bug Report
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

mwoynarski avatar May 23 '19 21:05 mwoynarski