mirror of
https://github.com/projectsend/projectsend.git
synced 2026-10-07 22:01:21 +00:00
53c4a4304d
Changing the sort (or search, category, owner) inside a folder on the client portal navigated to the top of My files, because the list query was built without the folder. And opening a folder, or following a breadcrumb, dropped the chosen sort, because folderUrl() carried only the folder id. Every portal theme shares the hook, so all four were affected. The list query now carries the open folder, and folderUrl() carries the sort when it is not the default (newest first), so default addresses stay clean. Search and the filters still show a flat list across every folder, as MyFilesController intends; clearing them returns to the folder. The staff library is unchanged: there, dropping the folder for a search is documented intent. Checked in a browser on a client account: sorting by name inside a folder stays in it and reorders it, and a folder link from a sorted list keeps the sort. Reported by @cookiebaker (#1806)