Staying in the same folder after refresh

Is it possible to stay in the same folder after a page refresh in a filemanager? Currently we get bumped to the main “Files” view. Could you point me to where this could be adjusted?

You can save the selection (getCurrentFolder) in the local storage and set defaultSelection in FileManager configuration - the method that returns the id of the folder which will be selected after init.

https://webix.com/snippet/ed59ff8d

My question is somewhat related to this. I want to be able to go to a specific subfolder (e.g. http://localhost:1234/#!/folder1/folder2/folder3/)

I initially load my tree with all the root level folders, and then i’m using branch mode to populate a folder everytime a user clicks one. But i’m having trouble navigating directly to a folder. Can you offer some guidance here?

thanks

Ok, i should maybe provide some more details here. I understand that what’s being displayed is the id of the folder after the #. What we did was set the id to the full path. However, it looks like webix doesn’t like the slashes there. Is there anyway we can use those slashes?

Update: i convert the slashes to backslashes and it looks like it’s not pulling them out anymore. But, I’m running into an issue where when my branch proxy call is getting an error when setting the parent before callback.success. This is because it sets the parent, which hasn’t been loaded yet. How can we use branch loading by specifying paths the way i mentioned?