From 7b71f59bab407dd0279a5d5509512b0d170200bb Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 25 Jan 2024 15:06:32 +0100 Subject: [PATCH] fix(files): Ensure the correct `dir` query is set on folder action Signed-off-by: Ferdinand Thiessen --- apps/files/src/actions/openFolderAction.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/files/src/actions/openFolderAction.ts b/apps/files/src/actions/openFolderAction.ts index e6d8c7f7edf..791b328b3ed 100644 --- a/apps/files/src/actions/openFolderAction.ts +++ b/apps/files/src/actions/openFolderAction.ts @@ -19,7 +19,6 @@ * along with this program. If not, see . * */ -import { join } from 'path' import { Permission, Node, FileType, View, FileAction, DefaultType } from '@nextcloud/files' import { translate as t } from '@nextcloud/l10n' import FolderSvg from '@mdi/svg/svg/folder.svg?raw' @@ -49,7 +48,7 @@ export const action = new FileAction({ && (node.permissions & Permission.READ) !== 0 }, - async exec(node: Node, view: View, dir: string) { + async exec(node: Node, view: View) { if (!node || node.type !== FileType.Folder) { return false } @@ -57,7 +56,7 @@ export const action = new FileAction({ window.OCP.Files.Router.goToRoute( null, { view: view.id, fileid: node.fileid }, - { dir: join(dir, node.basename) }, + { dir: node.path }, ) return null }, -- 2.39.5