widgetfactory / jce

JCE - A Content Editor for Joomla
https://www.joomlacontenteditor.net
GNU General Public License v2.0
35 stars 12 forks source link

File Browser not automatically loading after version 2.9.4 #118

Closed niranOFI closed 3 weeks ago

niranOFI commented 1 year ago

Describe the bug In version 2.94 and lower the file browser would automatically navigate to the folder are in upon clicking upload. However once we upgraded to version 2.9.36 this no longer happens and the file browser simple opens up in the root directory. The way it was working is that JCE would get the path from the cookie

$inputCookie->set($name = 'wf_browser_dir', $value = 'cospas_sarsat/pdf_uploads/'.$this->item->id, $expire = 0); Although the cookie still loads up in the browser, it seems that JCE 2.9.36 does nothing with that and simply opens up without navigating to the given path.

Expected behavior When clicking " Upload" the File manager should open up and navigate automatically to the folder we are in using the path from the cookie.

Screenshots Expected result image

The result after updated JCE 2.9.36 image

How might I go about fixing this issue, I'm not getting any errors in the console log.

ryandemmer commented 1 year ago

Fixed in commit - https://github.com/widgetfactory/jce/commit/b0b1f473d25ef831d38745a5252f135e4385c1fa

Fix will be included in the next update.