helios-ag / FMElfinderBundle

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

elfinder.min.js 404 when project is in folder #529

Open enboig opened 6 days ago

enboig commented 6 days ago

I am updating a symfony project from 4.4 to 5.4, using helios-ag/fm-elfinder-bundle 12.5.

My project is in https://dev-server/myproject; ckeditor loads correctly, but when opening popup to choose a file, it tries to load https://dev-server/bundles/fmelfinder/js/elfinder.min.js and should be https://dev-server/**myproject**/bundles/fmelfinder/js/elfinder.min.js.

I updated in config/routes/fm_elfinder.yaml:

#fm_elfinder:
#    resource: "@FMElfinderBundle/Resources/config/routing.yaml"
elfinder:
     resource: "@FMElfinderBundle/Resources/config/routing.yaml"

But it continue failing, and added to config/packages/fm_elfinder.yaml:

fm_elfinder:
    assets_path: '/myproject'

With no luck.