barryvdh / laravel-elfinder

elFinder bundle for Laravel
745 stars 171 forks source link

Elfinder return wrong url when search for specific file #221

Open xelyos opened 6 years ago

xelyos commented 6 years ago

Using elFinder is a great ideea, but the search doesn't work well. My folder using this structure:

Year / Month / {The files}.

I have two folders 2017 and 2018. In 2017 i have one directory called 12 and in directory "12" I have one file called "My image.png". Searching for image will return the correct image, but if i double click to image (i use elFinder with TinyMCE 4) will return this path: domain.com/uploads/17/12/My%20image.png instead of domain.com/uploads/2017/12/My%20image.png

If i change my directory name from 2017 to y2017 i'll get domain.com/uploads/017/12/My%20image.png

I don't know where is the problem, because if i open the folder tree (left sidebar) and i click the image will return the correct url.

Images with the problem: http://res.cloudinary.com/xelyos/image/upload/v1515864752/error_1_cpryfr.png http://res.cloudinary.com/xelyos/image/upload/v1515864754/working_riwj9j.png