Fixed Bug 69158: Client: PublicRoomStore: Fixed redirect to folder inside public room

This commit is contained in:
Ilya Oleshko 2024-07-12 12:22:48 +03:00
parent 2024a929ec
commit 7ed21ba317

View File

@ -207,8 +207,11 @@ class PublicRoomStore {
.then((res) => {
if (res?.shared) {
const filter = FilesFilter.getDefault();
const subFolder = new URLSearchParams(window.location.search).get(
"folder",
);
const url = getCategoryUrl(CategoryType.Shared);
filter.folder = res.id;
filter.folder = subFolder ? subFolder : res.id;
return window.location.replace(`${url}?${filter.toUrlParams()}`);
}